tiny-pixels v0.1.11
Tiny Pixels
Is a image resize and compression CLI. Its aim is to help resize and compress large amounts of images in a simple and predictable way.
Installation
npm i -g tiny-pixelsOptions
-d set the directory which contains your images
-o optional set the output directory for processed images
-j optional set the path to the output file for the json description file
-f optional set the formats you want the images to be in. Currently supported are webp, avif and jpeg
-s optional set the sizes you want to generate for all images. 400square@50 generates square image with the width and height of 400px at a quality of 50. 2560max generates images that keep their original aspect ratio and with a maximum height/width of 2560px with a default quality of 75
--statsOnly optional just generates the json output file without converting any images
--includeExif optional include exif information like camera make, iso, fNumber, exposureTime etc in the output file
Examples
tiny-pixels -o ./generated-images.json -d ./path/to/images -o output/dir -f webp avif -s 160min@50 640min@60 2560max