Skip to content

Rearranged subsampling assertions#3

Merged
bgilbert merged 1 commit intobgilbert:jpeg-rgbfrom
radarhere:jpeg-rgb
Nov 27, 2023
Merged

Rearranged subsampling assertions#3
bgilbert merged 1 commit intobgilbert:jpeg-rgbfrom
radarhere:jpeg-rgb

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

Development

Successfully merging this pull request may close these issues.

2 participants