VirtuBox / img-optimize

Image optimization bash script
https://virtubox.github.io/img-optimize/
MIT License
128 stars 40 forks source link

Lossless / quality option #2

Closed camlafit closed 5 years ago

camlafit commented 5 years ago

Hello

Thanks for your script, it's very nice and simple :) If I've correctly understood, some quality value are set by defaul. Could be possible to have an option to set quality option ?

Thanks

VirtuBox commented 5 years ago

Hello,

currently, for JPG images, quality is set to 82 (JPG optimization & WebP conversion). For PNG images, there is no quality settings, but only the optimization level currently set to 7 (240 trials), and it's the same for PNG -> WebP conversion. It should be possible to add an option for PNG & JPG images optimization, but it will be harder for WebP conversion because I'm not sure how to pass the variable into the script.

camlafit commented 5 years ago

Hello

Could be interessting to reopen this issue. With #7 PR could be easier to solve this issue.