Skip to content
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

Rearranged subsampling assertions #3

Merged
merged 1 commit into from Nov 27, 2023
Merged

Conversation

radarhere
Copy link

Suggestion for python-pillow#7553

I initially just wanted to move the

im = self.roundtrip(hopper(), subsampling=3, keep_rgb=True)

check after

im = self.roundtrip(hopper(), subsampling=3)

to make the comparison more obvious, but then I reduced I could group the checks together more.

for subsampling in (1, "4:2:2"):
im = self.roundtrip(hopper(), subsampling=subsampling)
assert getsampling(im) == (2, 1, 1, 1, 1, 1)
for subsampling in (2, "4:2:0", "4:1:1"):
Copy link
Author

@radarhere radarhere Nov 27, 2023

Choose a reason for hiding this comment

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

@bgilbert
Copy link
Owner

LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants