docs/reference/ImageCms #6161
Answered
by
radarhere
digital-prepress
asked this question in
Q&A
-
Anybody knows how to write use ImageCms write an example like the following code? import Image
import pyCMS
im = Image.open("c:\\test.tif")
imConverted = pyCMS.profileToProfile(im, "c:\\sRGB.icm", "c:\\SWOP.icm", outputMode = "CMYK")
imConverted.save("c:\\output.tif") |
Beta Was this translation helpful? Give feedback.
Answered by
radarhere
Mar 29, 2022
Replies: 2 comments 2 replies
-
I've found that your code example comes from https://www.cazabon.com/pyCMS/ Is this all that you wanted? from PIL import Image, ImageCms
im = Image.open("c:\\test.tif")
imConverted = ImageCms.profileToProfile(im, "c:\\sRGB.icm", "c:\\SWOP.icm", outputMode = "CMYK")
imConverted.save("c:\\output.tif") |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
digital-prepress
-
if i want to use this kind of transform color with option ImageCms.INTENT_ABSOLUTE_COLORIMETRIC,how to code it ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've found that your code example comes from https://www.cazabon.com/pyCMS/
Is this all that you wanted?