Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rexxars/aspectify
Converts one or more images to a given aspect ratio by cropping
https://github.com/rexxars/aspectify
Last synced: 11 days ago
JSON representation
Converts one or more images to a given aspect ratio by cropping
- Host: GitHub
- URL: https://github.com/rexxars/aspectify
- Owner: rexxars
- License: mit
- Created: 2019-03-23T16:44:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-04-05T21:17:54.000Z (over 2 years ago)
- Last Synced: 2024-10-11T07:13:04.982Z (about 1 month ago)
- Language: JavaScript
- Size: 65.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aspectify
Converts one or more images to a given aspect ratio by cropping.
Requires node.js >= 14.## Installation
```
npm install -g aspectify
```## Usage
```
Usage
$ aspectify <...files>Options
-a, --aspect Aspect ratio to use (eg: 16:9, 4:3, 1.77) - default is 16:9
-o, --output Output filename (default: ..)
-r, --replace Replace the original file
-w, --max-width Max width of the image
-h, --max-height Max height of the image
-c, --concurrency Maximum number of crops to perform simultaneously
-v, --verbose Be verbose about operations performedExamples
$ aspectify you.jpg
$ aspectify -o target.png source.png
$ aspectify -r replace-me.webp
$ aspectify 1.jpg 2.jpg 3.jpg
$ aspectify -c 3 *.jpg
$ apectify -a 16:10 -r -w 2000 *.jpg
```## License
MIT © [Espen Hovlandsdal](https://espen.codes/)