Closed TimurNurlygayanov closed 4 years ago
Update: it works fine if I specify the full path to the file
I will look into that. Can you please tell me which version are you using? Can you test it with the current development master from Github?
I'm using 1.35 version installed with pip3, MacOS 10.15.4
optimize-images -v
1.3.5
Hi. In fact the current PyPI.org version does not include a fix that I believe was introduced in ad0aee7. Just needs some additional testing before submission to PyPI. Please stay tuned for the next release.
Meanwhile, in case you are able to test the current development version, please report if it solved the issue for you. You can find some instructions on the full documentation page:
Actually, it seems it had been solved only for JPEG files. I have just submitted the same fix for PNG files. It will also be included in the next PyPI update, but can be obtained right now from this repo.
To install the current development version (just replace python3.8 with your python version):
python3.8 -m pip install git+https://github.com/victordomingos/optimize-images
This is the version I am currently working on.
Just a quick notice to let you know that, on the latest commit (not yet available in PyPI), I have implemented in-memory buffers using BytesIO, instead of in-disk temporary files.
Cool! Thank you!
Hi, I've found that this tools doesn't work for me on MacOS:
I'm using the following command:
optimize-images -rc -q 70 image.png
Results:
Why this tool tried to use / directory to save temporary images?