nonopic v1.0.3
NonoPic
Fork from Squoosh CLI by Google
Nono means 'baby' in Arabic.
NonoPic is a command-line interface for the Squoosh library, which allows you to process, optimize, and convert images using various codecs and preprocessors. It leverages multiple CPU cores for parallel processing and supports a wide range of image formats, including JPEG, PNG, and WebP.
Features
- Supports a variety of codecs (e.g., WebP, MozJPEG, AVIF, and more) 
- Offers image preprocessing options (e.g., resize, rotate, and quantize) 
- Utilizes multiple CPU cores for parallel processing 
- Customizable output directory and file suffix 
- Processes images in the current directory and its subdirectories 
- Overwrites existing files with the same output name 
Installation
npm i -g nonopicUsage
This package is designed to replace and Process all .jpg, .png, and .webp files in the current directory and its subdirectories with new webp pictures that are auto-optimized.
Just by passing this command in your assets folder:
nonopicif you want to take full control of the package you can do so using upcoming commands and more... :
nonopic [pattern]Example:
nonopic "./path/to/image.jpg"
nonopic "./**/*.{jpg,png}"You can specify an output directory:
nonopic -d "./output"You can append a custom suffix to the output files:
nonopic -s "-optimized"You can enable and configure preprocessors and codecs:
nonopic --resize '{"enabled":true,"width":1024}' --webp '{"quality":75}'For more information on the available options, run:
nonopic --helpOsama Soliman @solimanware
License
MIT License.