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.56k stars 213 forks source link

Fixed issue #234 #245

Closed EpicGazel closed 9 months ago

EpicGazel commented 9 months ago

https://github.com/Lymphatus/caesium-image-compressor/issues/234

Theoretically should fix the issue. Unfortunately, I don't have a Mac to build on and double-check.

Simply changes the copy path to have the original filename + extension suffix instead of the new one.

EpicGazel commented 9 months ago

Was able to build and test on windows 11. Works as expected: when the file is larger converted, the original file is copied over with the original extension. When smaller, the new file is copied over with the new extension.

Lymphatus commented 9 months ago

I'll run a few tests myself (including macOS) and if seems ok, I'll merge. Thanks!