An open API service indexing awesome lists of open source software.

https://github.com/dfirebaugh/crop

a very simple cli tool to crop down png images
https://github.com/dfirebaugh/crop

Last synced: 7 months ago
JSON representation

a very simple cli tool to crop down png images

Awesome Lists containing this project

README

          

# crop
I needed a tool to crop a bunch of png images. So, this is a very simple cli tool to crop images down.

> note: at the moment this will only crop from the top left corner to a certain width and height -- it also defaults to 128x128 if you don't pass in `-x` and `-y` flags

## Usage

#### Basic usage
```bash
crop

Usage: go run crop.go [-i=] [-o=] [-x=] [-y=]
```

You can crop one image:

```bash
crop
```

... or crop an entire directory

```bash
crop -i -o
```

```bash
crop -i ./assets/original/ -o ./assets/cropped/ -x 128 -y 128
```