Skip to content

Fix alpha encoding in extended-range PNG snapshots - #281

Open
pixelmatrix wants to merge 1 commit into
getsentry:mainfrom
pixelmatrix:fix/png-alpha-encoding
Open

pixelmatrix wants to merge 1 commit into
getsentry:mainfrom
pixelmatrix:fix/png-alpha-encoding

Conversation

@pixelmatrix

Copy link
Copy Markdown

We were seeing artifacts on partially transparent pixels in our snapshot tests, and after some research, found that UIImage.pngData() causes this reliably. Exporting using ImageIO does not have the same problem. I've forked this and implemented a fix for us, and wanted to contribute it back, in case it's useful.

Before After
Linear_DraftStack swift_Draft_Card Linear_DraftStack swift_Draft_Card-2

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant