Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tacaswell merged 5 commits intomatplotlib:masterfrommdboom:transparent-jpg
Oct 28, 2015
Merged
Changes from1 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
PrevPrevious commit
NextNext commit
Fix test
  • Loading branch information
@mdboom
mdboom committedOct 27, 2015
commit183f246cfca1d804d7b905b324d0fe610e2322cb
4 changes: 2 additions & 2 deletionslib/matplotlib/tests/test_image.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -473,10 +473,10 @@ 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.
assert len(image.getcolors(256))== 179
assert len(image.getcolors(256))>= 170 and len(image.getcolors(256)) <= 180
# The fully transparent part should be red, not white or black
# or anything else
assert image.getpixel(0, 0) == (0, 0,255)
assert image.getpixel((0, 0)) == (254, 0,0)


if __name__=='__main__':
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp