Check similarity of round-tripped YCbCr JPEG, for symmetry with RGB

This commit is contained in:
Benjamin Gilbert 2023-12-28 13:00:17 -06:00
parent e2018a6697
commit 372083c59f

View File

@ -148,6 +148,7 @@ class TestFileJpeg:
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"))