Open luboslives opened 5 years ago
In the meantime, Mac users can use this terminal command to rename the files after conversion:
for f in *.png; do mv "$f" "${f%.png}.jpg"; done
I will try to look into this as soon as possible. I can't remember if there was a reason to keep the original extension, or if this was an oversight.
At the moment I am considering checking the output mime type and applying the correct suffix for said type.
Should be fixed in the latest release : https://github.com/romainmenke/simple-guetzli/releases/tag/v0.4.0
This will only affect runs that convert to a different directory. If this tool is used to convert images while overriding the originals the original file extension will be kept as is.
Hi, great utility. I know you haven't touched it in a couple of years but since guetzli can take in PNGs as a source, simple-guetzli will spit out the converted jpegs as .png files because it's copying the original file name and extension.
Is there an existing way to achieve this or would you consider patching it in? Might have to patch the log checker too? Thanks.