Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Identify transparency for indexed PNG correctly - #2215

#2215
Merged
JimBobSquarePants merged 3 commits into
mainSixLabors/ImageSharp:mainfrom
bp/pngindexedtransSixLabors/ImageSharp:bp/pngindexedtransCopy head branch name to clipboard
Aug 29, 2022
Merged

Identify transparency for indexed PNG correctly#2215
JimBobSquarePants merged 3 commits into
mainSixLabors/ImageSharp:mainfrom
bp/pngindexedtransSixLabors/ImageSharp:bp/pngindexedtransCopy head branch name to clipboard

Conversation

@brianpopow

Copy link
Copy Markdown
Collaborator

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

This PR fixes an issue that HasTransparency is not set for index PNG's.
This fixes #2209

@JimBobSquarePants

Copy link
Copy Markdown
Member

Thanks for this @brianpopow I tweaked it slightly to ensure that the assignment only happens when the alpha chunk has a length

@JimBobSquarePants
JimBobSquarePants merged commit 1b6728b into main Aug 29, 2022
@JimBobSquarePants
JimBobSquarePants deleted the bp/pngindexedtrans branch August 29, 2022 01:06
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.

GetPngMetadata does not set HasTransparency correctly for palette-based PNGs

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.