1.0.3 • Published 12 months ago

nonopic v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

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 nonopic

Usage

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:

nonopic

if 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 --help

Osama Soliman @solimanware

License

MIT License.

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago

1.0.3

12 months ago

0.0.1

1 year ago