squeezr is a node CLI tool for convert and minify images written in Javascript.
Currently support the following formats: JPEG, PNG, WebP and AVIF.
Use the package manager npm to install squeezr.
npm i -g squeezr
Simple as that
squeezr --srcFolder="/absolute_path/in" --targetFolder="/absolute_path/out"
Or if you want a portion of files to be compressed you can pass --activePath
to work as a subpath
squeezr --srcFolder="/absolute_path/in" --targetFolder="/absolute_path/out" --activePath="only_this_folder"
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.