Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix #5302: Proper alpha-blending for jpeg #5324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 28, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Adjust acceptable range
  • Loading branch information
mdboom committed Oct 28, 2015
commit fb6ff8ab196f9abbf4fa89b2facd2d46867d534a
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def test_jpeg_alpha():
# If this fails, there will be only one color (all black). If this
# is working, we should have all 256 shades of grey represented.
print("num colors: ", len(image.getcolors(256)))
assert len(image.getcolors(256)) >= 170 and len(image.getcolors(256)) <= 180
assert len(image.getcolors(256)) >= 175 and len(image.getcolors(256)) <= 185
# The fully transparent part should be red, not white or black
# or anything else
print("corner pixel: ", image.getpixel((0, 0)))
Expand Down