-
Notifications
You must be signed in to change notification settings - Fork 627
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
Filter regression in PNG encoding #305
Comments
Another problem is that this code uses |
The issue in the previous comment could have been prevented by rust-lang/rust#5477. |
mbrubeck
added a commit
to mbrubeck/image
that referenced
this issue
Feb 26, 2015
Fixes image-rs#305. This partially reverts image-rs#298, but keeps the correct parts.
Thanks. Good findings! |
mbrubeck
added a commit
to mbrubeck/image
that referenced
this issue
Feb 26, 2015
Fixes image-rs#305. This partially reverts image-rs#298, but keeps the correct parts.
fintelia
pushed a commit
that referenced
this issue
Dec 20, 2024
…on-animation-images Fix 301 regression encode non animation images
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#298 created a regression that causes some images to be encoded incorrectly as PNG. This following test case demonstrates the problem. The PPM file is correct, but every other row of the PNG file is incorrect.
Reverting #298 fixes the bug.
Looking at that patch, I think that this line and this line are incorrect, since
current[i - bpp]
is not the same asorig[i - bpp]
in the previous code; it is a value that may have been changed by the precedingfor
loop.The text was updated successfully, but these errors were encountered: