Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gamikun/pymago
CLI wrapper for imagemagic, pngquant, jpegoptim and opting with additional facilities.
https://github.com/gamikun/pymago
cli imagemagick imagery jpegoptim processing
Last synced: 5 days ago
JSON representation
CLI wrapper for imagemagic, pngquant, jpegoptim and opting with additional facilities.
- Host: GitHub
- URL: https://github.com/gamikun/pymago
- Owner: gamikun
- Created: 2017-09-04T03:17:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-24T06:12:44.000Z (over 3 years ago)
- Last Synced: 2024-10-14T04:17:26.525Z (about 1 month ago)
- Topics: cli, imagemagick, imagery, jpegoptim, processing
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Install
```
pip install pymago
```# Usage
## Convert all files into another format
```
# Take all the png files and convert them into webp
mago convert directory/*.png -format webp
```## Tint images
```
# Tint all images from the directory with blue color
mago tint path/to/images/*.png -color "blue"
```## Optimize PNG's
```
# Optimize all png files in the directory by replacing them
mago pngquant *.png
```## Resize an image given a maximum
```
# Change all images sizes but only when they are greater than 1280
mago resizer *.png -m 1280
```