Skip to content

Fix issue in PNG identify method to skip "uninteresting" chunks, incl… - #2019

Merged
JimBobSquarePants merged 5 commits into
SixLabors:mainfrom
flew2bits:fix-png-identify-issue-with-sBIT-chunk
Feb 27, 2022
Merged

JimBobSquarePants merged 5 commits into
SixLabors:mainfrom
flew2bits:fix-png-identify-issue-with-sBIT-chunk

Conversation

@flew2bits

Copy link
Copy Markdown
Contributor

…uding sBIT.

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

Add a default clause in the PNG Identify method to skip over "uninteresting" chunks so that the data is properly read.
This fixes issue #2018

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get "Invalid PNG data." exception during Identify phase of loading PNG image when image contains sBIT chunk

4 participants