-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jpegoptim changes ImageMagick rgb decode of a few images #77
Comments
I have the same issue in Windows 10 with Ubuntu 20.04.2 LTS running under WSL1. It has jpegoptim v1.4.6 and ImageMagick 6.9.10-23 Q16 x86_64 20190101. The problem also happens with that file when I use my old jpegoptim v1.4.4beta built using Cygwin i686-w64-mingw32 in Windows. |
The output of Simply running |
I would guess this has something to do with the JPEG library that jpegoptim was compiled against... (seen weird behavior with libjpeg-turbo in the past...) I tested with latest (compiled from git) and wasn't able to reproduce your issue:
Tried also converting to progressive JPEG (that usually yields slightly smaller output files):
|
In the past I verified that jpegoptim does not alter images by doing an ImageMagick convert rgb decode before and after, and then comparing md5 sums. Right now I'm finding that some images are altered. I'm attaching one here: A quick glance through
cmp -l
output shows that many pixel values are changed by 1. (Example JPEG file MD5 is be84d44f1c409d570e40e5a84571c3be, and I've verified that GitHub didn't alter it.)This problem is present with v1.4.4 which I built myself, v1.4.6 which is available in Ubuntu 21.04 and v1.4.7beta which I just built from git source. I'm using
convert "$i" "$i.rgb"
with "ImageMagick 6.9.10-23 Q16 x86_64 20190101" which is part of Ubuntu 21.04. All of this is in Ubuntu 21.04, on two different x86_64 systems.This happens both with normal and progressive (interlaced) output.
The text was updated successfully, but these errors were encountered: