Example #1
0
 def test10_CreateProofingTransformWithCustomProofingIntent(self):
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
                                        self.inProfile, cms.TYPE_RGB_8,
                                        self.outProfile,
                                        cms.INTENT_PERCEPTUAL,
                                        cms.INTENT_PERCEPTUAL))
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
                                        self.inProfile, cms.TYPE_RGB_8,
                                        self.outProfile,
                                        cms.INTENT_PERCEPTUAL,
                                        cms.INTENT_RELATIVE_COLORIMETRIC))
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
                                        self.inProfile, cms.TYPE_RGB_8,
                                        self.outProfile,
                                        cms.INTENT_PERCEPTUAL,
                                        cms.INTENT_SATURATION))
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
                                        self.inProfile, cms.TYPE_RGB_8,
                                        self.outProfile,
                                        cms.INTENT_PERCEPTUAL,
                                        cms.INTENT_ABSOLUTE_COLORIMETRIC))
Example #2
0
 def test11_CreateProofingTransformWithCustomFlags(self):
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(
             self.inProfile, cms.TYPE_RGB_8, self.inProfile, cms.TYPE_RGB_8,
             self.outProfile, cms.INTENT_PERCEPTUAL,
             cms.INTENT_RELATIVE_COLORIMETRIC,
             cms.cmsFLAGS_NOTPRECALC | cms.cmsFLAGS_GAMUTCHECK))
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(
             self.inProfile, cms.TYPE_RGB_8, self.inProfile, cms.TYPE_RGB_8,
             self.outProfile, cms.INTENT_PERCEPTUAL,
             cms.INTENT_RELATIVE_COLORIMETRIC, cms.cmsFLAGS_PRESERVEBLACK
             | cms.cmsFLAGS_BLACKPOINTCOMPENSATION))
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(
             self.inProfile, cms.TYPE_RGB_8, self.inProfile, cms.TYPE_RGB_8,
             self.outProfile, cms.INTENT_PERCEPTUAL,
             cms.INTENT_RELATIVE_COLORIMETRIC,
             cms.cmsFLAGS_NOTPRECALC | cms.cmsFLAGS_HIGHRESPRECALC))
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(
             self.inProfile, cms.TYPE_RGB_8, self.inProfile, cms.TYPE_RGB_8,
             self.outProfile, cms.INTENT_PERCEPTUAL,
             cms.INTENT_RELATIVE_COLORIMETRIC,
             cms.cmsFLAGS_NOTPRECALC | cms.cmsFLAGS_LOWRESPRECALC))
Example #3
0
	def test13_CreateProofingTransformWithInvalidProofingIntent(self):
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, 1, 2))
		try:
			cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, 1, 4)
		except cms.cmsError:
			return
		self.fail()
Example #4
0
 def test13_CreateProofingTransformWithInvalidProofingIntent(self):
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
                                        self.inProfile, cms.TYPE_RGB_8,
                                        self.outProfile, 1, 2))
     try:
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
                                        self.inProfile, cms.TYPE_RGB_8,
                                        self.outProfile, 1, 4)
     except cms.cmsError:
         return
     self.fail()
Example #5
0
	def test10_CreateProofingTransformWithCustomProofingIntent(self):
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, cms.INTENT_PERCEPTUAL, cms.INTENT_PERCEPTUAL))
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, cms.INTENT_PERCEPTUAL, cms.INTENT_RELATIVE_COLORIMETRIC))
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, cms.INTENT_PERCEPTUAL, cms.INTENT_SATURATION))
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, cms.INTENT_PERCEPTUAL, cms.INTENT_ABSOLUTE_COLORIMETRIC))
Example #6
0
	def test08_CreateProofingTransform(self):
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile))
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGBA_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile))
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGBA_8,
														self.outProfile))
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGBA_8,
														self.inProfile, cms.TYPE_RGBA_8,
														self.outProfile))
Example #7
0
	def test11_CreateProofingTransformWithCustomFlags(self):
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, cms.INTENT_PERCEPTUAL, cms.INTENT_RELATIVE_COLORIMETRIC,
														cms.cmsFLAGS_NOTPRECALC | cms.cmsFLAGS_GAMUTCHECK))
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, cms.INTENT_PERCEPTUAL, cms.INTENT_RELATIVE_COLORIMETRIC,
														cms.cmsFLAGS_PRESERVEBLACK | cms.cmsFLAGS_BLACKPOINTCOMPENSATION))
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, cms.INTENT_PERCEPTUAL, cms.INTENT_RELATIVE_COLORIMETRIC,
														cms.cmsFLAGS_NOTPRECALC | cms.cmsFLAGS_HIGHRESPRECALC))
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, cms.INTENT_PERCEPTUAL, cms.INTENT_RELATIVE_COLORIMETRIC,
														cms.cmsFLAGS_NOTPRECALC | cms.cmsFLAGS_LOWRESPRECALC))
Example #8
0
 def test08_CreateProofingTransform(self):
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
                                        self.inProfile, cms.TYPE_RGB_8,
                                        self.outProfile))
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGBA_8,
                                        self.inProfile, cms.TYPE_RGB_8,
                                        self.outProfile))
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
                                        self.inProfile, cms.TYPE_RGBA_8,
                                        self.outProfile))
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGBA_8,
                                        self.inProfile, cms.TYPE_RGBA_8,
                                        self.outProfile))