Exemplo n.º 1
0
 def test_intent(self):
     self.skip_missing()
     self.assertEqual(ImageCms.getDefaultIntent(SRGB), 0)
     self.assertEqual(
         ImageCms.isIntentSupported(SRGB,
                                    ImageCms.INTENT_ABSOLUTE_COLORIMETRIC,
                                    ImageCms.DIRECTION_INPUT), 1)
Exemplo n.º 2
0
 def test_profile_object(self):
     # same, using profile object
     p = ImageCms.createProfile("sRGB")
     #    self.assertEqual(ImageCms.getProfileName(p).strip(),
     #                 'sRGB built-in - (lcms internal)')
     #    self.assertEqual(ImageCms.getProfileInfo(p).splitlines(),
     #             ['sRGB built-in', '', 'WhitePoint : D65 (daylight)', '', ''])
     self.assertEqual(ImageCms.getDefaultIntent(p), 0)
     self.assertEqual(
         ImageCms.isIntentSupported(p,
                                    ImageCms.INTENT_ABSOLUTE_COLORIMETRIC,
                                    ImageCms.DIRECTION_INPUT), 1)