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.47k stars 209 forks source link

png to jpg failed to compress, result all goes black #204

Closed 3xploiton3 closed 1 year ago

3xploiton3 commented 1 year ago

original file: https://drive.google.com/file/d/1svIP6kNiZ_piggpyTys3vTbgJimpjsTW/view?usp=share_link

result file after compress to jpg: https://drive.google.com/file/d/11mVfrycygup2zDyaXJgngSdrLA2Ooh8p/view?usp=share_link

OS: windows 11 (22H2) caesium: v2.4.0

config image image

Lymphatus commented 1 year ago

This is not really a bug, but it's intended. The PNG image has transparency, which JPEG does not have. The conversion process just takes all transparent pixels and convert them to black. Since the content of the image is itself black, then you have a nice dark square as result.