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
- Host: GitHub
- URL: https://github.com/dfirebaugh/crop
- Owner: dfirebaugh
- License: mit
- Created: 2023-05-21T20:40:15.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-21T20:49:46.000Z (about 3 years ago)
- Last Synced: 2024-12-27T19:29:54.282Z (over 1 year ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```