Skip to content

FIX: ensure images are C order before passing to pillow #28032

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 1 commit into from
Apr 17, 2024

Conversation

tacaswell
Copy link
Member

closes #28020

PR summary

PR checklist

@tacaswell tacaswell modified the milestones: v3.10.0, v3.9.0 Apr 5, 2024
@@ -205,6 +205,13 @@ def test_imsave(fmt):
assert_array_equal(arr_dpi1, arr_dpi100)


@pytest.mark.parametrize("origin", ["upper", "lower"])
def test_imsave_rgba_origin(origin):
buf = io.BytesIO()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optionally add a comment., why this test was added/ what it ensures.

Copy link
Member

@oscargus oscargus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit off w.r.t. release schedule so will not merge with 3.9-tag. But if it is OK to still backport, @tacaswell can self-merge, ideally after adding a comment about the reason for the test (but, yes, optional).

@tacaswell tacaswell force-pushed the fix/imshow_rgba_lower branch from 6e5d845 to f8d8020 Compare April 15, 2024 13:54
@tacaswell tacaswell force-pushed the fix/imshow_rgba_lower branch from f8d8020 to df29a4e Compare April 16, 2024 21:21
@oscargus oscargus merged commit a218d5c into matplotlib:main Apr 17, 2024
44 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Apr 17, 2024
@tacaswell tacaswell deleted the fix/imshow_rgba_lower branch April 17, 2024 15:08
ksunden added a commit that referenced this pull request Apr 17, 2024
…032-on-v3.9.x

Backport PR #28032 on branch v3.9.x (FIX: ensure images are C order before passing to pillow)
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.

[Bug]: imsave fails on RGBA data when origin is set to lower
3 participants