No public description
PiperOrigin-RevId: 577873616
This commit is contained in:
parent
2f4d7b4079
commit
7256bd2638
|
@ -207,7 +207,9 @@ class ImageTest(absltest.TestCase):
|
|||
loaded_image = Image.create_from_file(image_path)
|
||||
self.assertEqual(loaded_image.width, 720)
|
||||
self.assertEqual(loaded_image.height, 382)
|
||||
self.assertEqual(loaded_image.channels, 3)
|
||||
# On Mac w/ GPU support, images use 4 channels. Otherwise, all images use
|
||||
# 3 channels.
|
||||
self.assertIn(loaded_image.channels, [3, 4])
|
||||
self.assertEqual(loaded_image.image_format, ImageFormat.SRGB)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue
Block a user