mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
Check similarity of round-tripped YCbCr JPEG, for symmetry with RGB
This commit is contained in:
parent
e2018a6697
commit
372083c59f
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue
Block a user