JamieMason / ImageOptim-CLI

Make optimisation of images part of your automated build process
https://foldleft.io/image-tools
MIT License
3.44k stars 124 forks source link

Add an option to compress images with lossy minifcations #196

Open grzegorzkrukowski opened 1 year ago

grzegorzkrukowski commented 1 year ago

Description

Having the option to specify the quality of processed images will be really useful:

CleanShot 2023-06-02 at 18 07 55@2x

Suggested Solution

Right now the --quality parameter affects only ImageAlpha. Adding a few more properties: --jpeg-quality --png-quality --gif-quality to have control over the quality same as in the ImageOptim application would allow using lossy minification also from the CLI

taylorkline commented 3 months ago

Not strictly a +1, but it's very confusing that the CLI allows this option without requiring ImageAlpha. It's confusing to keep getting "No size savings" regardless of the --quality param specified.