CompressCLI is a tool that use the official TinyPNG service to compress images via CLI with the best quality and the lowest weight preserving full transparency.
- For Mac, Linux and Windows:
npm install -g @pradoguilherme/compresscli
or
yarn add -g @pradoguilherme/compresscli
Usage: ccpres <cmd> [args]
Commands:
ccpres list Show list of images in the folder
ccpres compress Compress the image and save in the same folder but with a prefix on the filename
ccpres quota Show the current quota
ccpres help Show helper
ccpres version Show version
Options:
--help Show help
--version Show version
-f The filename with the entire directory
-d The directory path with the files
When the compression is finished, a "compressed" folder is created in the original file directory and the new compressed file will be saved on this page.
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Fork the repository
- Create a branch with your feature:
git checkout -b my-feature
- Commit your changes:
git commit -m 'feat: my feature'
- Push to the branch:
git push origin my-feature
- Create new pull request for this repository.
Made with β€οΈ by Guilherme Prado using the brilhant api from TinyPNG.