Skip to content

πŸš€ CompressCLI is a tool that use TinyPNG service to compress images via CLI with the best quality and the lowest weight.

License

Notifications You must be signed in to change notification settings

PradoGuilherme/CompressCLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

58 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CompressCLI

Downloads Downloads Downloads Downloads Downloads Dependencies

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.


πŸ“Ÿ Preview

Demo - CompressCLI


⚑ Install

  1. For Mac, Linux and Windows:
npm install -g @pradoguilherme/compresscli

or

yarn add -g @pradoguilherme/compresscli

πŸš€ Getting Started

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.

πŸ“ License

This project is licensed under the MIT License - see the LICENSE.md file for details.

πŸŽ‰ Contributing

  1. Fork the repository
  2. Create a branch with your feature: git checkout -b my-feature
  3. Commit your changes: git commit -m 'feat: my feature'
  4. Push to the branch: git push origin my-feature
  5. Create new pull request for this repository.

πŸ–€ Thanks

Made with ❀️ by Guilherme Prado using the brilhant api from TinyPNG.

Releases

No releases published

Packages

No packages published