Skip to content

Commit

Permalink
Check similarity of round-tripped YCbCr JPEG, for symmetry with RGB
Browse files Browse the repository at this point in the history
  • Loading branch information
bgilbert committed Dec 28, 2023
1 parent e2018a6 commit 372083c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Tests/test_file_jpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def getchannels(im):
im = hopper()
im_ycbcr = self.roundtrip(im)
assert getchannels(im_ycbcr) == (1, 2, 3)
assert_image_similar(im, im_ycbcr, 17)

im_rgb = self.roundtrip(im, keep_rgb=True)
assert getchannels(im_rgb) == (ord("R"), ord("G"), ord("B"))
Expand Down

0 comments on commit 372083c

Please sign in to comment.