Lymphatus / caesium-image-compressor

Caesium is an image compression software that helps you store, send and share digital pictures, supporting JPG, PNG, WebP and TIFF formats. You can quickly reduce the file size (and resolution, if you want) by preserving the overall quality of the image.
https://saerasoft.com/caesium
GNU General Public License v3.0
3.31k stars 202 forks source link

Specify compression ratio #252

Closed SysVR closed 2 months ago

SysVR commented 5 months ago

Is your feature request related to a problem? Please describe. Unclear what compression ratio is being used.

Describe the solution you'd like If this software uses oxipng, etc, I don't know what the compression ratio is, so I would like to be able to specify the compression ratio.

Describe alternatives you've considered Install a slider that allows you to specify the compression ratio for lossless compression.

Lymphatus commented 5 months ago

For oxipng, Caesium uses the preset level 3, and 6 as level for libdeflater. This is a snippet from libcaesium

oxipng_options = oxipng::Options::from_preset(3);
oxipng_options.deflate = Libdeflater { compression: 6 };

Setting this levels could be something I add in an "advanced" panel.

SysVR commented 5 months ago

thank you