Support for decoding incomplete PNG files #2976
Answered
by
JimBobSquarePants
Poker-sang
asked this question in
Ideas
-
I hope ImageSharp to decode incomplete PNGs, in order to use ImageSharp for progressive decoding of PNGs. Right now decoding incomplete PNGs throws an exception: “IDAT block corrupted”. Maybe changing the behavior to end decoding would implement this feature. |
Beta Was this translation helpful? Give feedback.
Answered by
JimBobSquarePants
Aug 9, 2025
Replies: 2 comments 5 replies
-
It really depends on the level of corruption. Can you share some I can experiment with? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Actually @Poker-sang have you tried the options?
https://docs.sixlabors.com/api/ImageSharp/SixLabors.ImageSharp.Formats.Png.PngCrcChunkHandling.html