Skip to content

net: Premultiply alpha in PNGs. - #3281

Merged
metajack merged 1 commit into
servo:masterfrom
pcwalton:premultiply-alpha
Sep 11, 2014
Merged

metajack merged 1 commit into
servo:masterfrom
pcwalton:premultiply-alpha

Conversation

@pcwalton

Copy link
Copy Markdown
Contributor

Closes #2857.

r? @zwarich

@hoppipolla-critic-bot

Copy link
Copy Markdown

Critic review: https://critic.hoppipolla.co.uk/r/2558

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@metajack

Copy link
Copy Markdown
Collaborator

This appears to cause some reftest failures:

linux:

failures:

acid1_a.html == acid1_b.html

alpha_png_a.html == alpha_png_b.html

append_style_a.html == append_style_b.html

block_image.html == 500x300_green.html

borders_a.html == borders_b.html

png_rgba_colorspace_a.html == png_rgba_colorspace_b.html

mac:

failures:

acid1_a.html == acid1_b.html

acid2_noscroll.html == acid2_ref_broken.html

alpha_png_a.html == alpha_png_b.html

block_image.html == 500x300_green.html

borders_a.html == borders_b.html

png_rgba_colorspace_a.html == png_rgba_colorspace_b.html

@pcwalton

Copy link
Copy Markdown
Contributor Author

@metajack Off-by-one error. New version pushed. Let's see if that fixes it.

@pcwalton

Copy link
Copy Markdown
Contributor Author

Amusingly, this made Acid2 look better! So I needed to regenerate the reference PNG.

metajack added a commit that referenced this pull request Sep 11, 2014
@metajack
metajack merged commit 1124430 into servo:master Sep 11, 2014
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.

Alpha for PNGs in between (0%..100%) results in funny looking color in CPU rendering only

3 participants