-
Notifications
You must be signed in to change notification settings - Fork 29
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
PNG: a very small percentage of images decoded incorrectly #84
Comments
You have images with 1GB output size for dimensions? That's a 16384 * 16384 RGBA image to say the least. I should allow such settings to be tweaked in the command line though |
…ill always finish without hitting limits. Fixes a part of #84 Signed-off-by: caleb <etemesicaleb@gmail.com>
One out of 600,000 images, yes. |
Flags some images in #84 Signed-off-by: caleb <etemesicaleb@gmail.com>
The if's fail for some weird reasons so imma remove them for now. Fixes error at #84 Signed-off-by: caleb <etemesicaleb@gmail.com>
A summary is that. There was a bug on tRNS expansion, it's now corrected. Most of these images are APNG ( You will get a warning on encountering APNG files informing you that you will only get the first frame (another cool thing was that we gained I don't think there are any further errors on PNG but I am not satisfied with some things i.e bit depth expansion, and some allocations we can avoid. I'm going to spend some time fixing those ones and will ping when I'm satisfied with speed and memory use. |
…ill always finish without hitting limits. Fixes a part of #84 Signed-off-by: caleb <etemesicaleb@gmail.com>
Flags some images in #84 Signed-off-by: caleb <etemesicaleb@gmail.com>
The if's fail for some weird reasons so imma remove them for now. Fixes error at #84 Signed-off-by: caleb <etemesicaleb@gmail.com>
The results from a test run on the manebooru.art database are in.
There are no decode failures other than
ERROR [zune_bin] Could not complete workflow, reason png: Error decoding idat chunks Output limit exceeded, set limit was 1073741824 and output size is 107374185
which appears to be legitimate.However, there are some discrepancies in decoding compared to imagemagick on a total of 70 images out of 600,000. This should hopefully be a representative sample: https://mega.nz/file/tslC1azb#CBg56O8T7uwC1uXBnbcQLjSaYiQALtaCz_b97hXDm3Y
Tested on commit 15e5d6c. The run on 600,000 images was done on an earlier commit, but I've re-tested everything on the specified commit, which is the latest as of this writing.
The text was updated successfully, but these errors were encountered: