You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PIL.ImageCms.createProfile(colorSpace, colorTemp=-1) function accepts colorSpace values from the ["LAB", "XYZ", "sRGB"] list.
This function is very useful when dealing with RGB images that have no embedded ICC profile as it can generate the missing profile for these images in the form of the sRGB profile, as this profile seems to be the closest to what the majority of the producers around the world that don't embed the RGB profile seem to imply (there are extensive discussions on the issue, so will not repeat).
With CMYK images that have no embedded ICC profile, on the other hand, the consensus is less pronounced. However, Adobe seems to imply U.S. Web Coated (SWOP) v2 when dealing with such profile-less CMYK images.
In light of this, is there a way to add the 'SWOPv2' to the list of allowed colorSpace values which should then pull up the profile from the file (USWebCoatedSWOP.icc on Windows, for example)?
Or are there some sorts of copyright issues that would prevent PIL from doing this? If so, it would be nice to have an option for any open-source ICC profile that is closest to the Adobe one.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The
PIL.ImageCms.createProfile(colorSpace, colorTemp=-1)
function accepts colorSpace values from the ["LAB", "XYZ", "sRGB"] list.This function is very useful when dealing with RGB images that have no embedded ICC profile as it can generate the missing profile for these images in the form of the sRGB profile, as this profile seems to be the closest to what the majority of the producers around the world that don't embed the RGB profile seem to imply (there are extensive discussions on the issue, so will not repeat).
With CMYK images that have no embedded ICC profile, on the other hand, the consensus is less pronounced. However, Adobe seems to imply U.S. Web Coated (SWOP) v2 when dealing with such profile-less CMYK images.
In light of this, is there a way to add the 'SWOPv2' to the list of allowed colorSpace values which should then pull up the profile from the file (USWebCoatedSWOP.icc on Windows, for example)?
Or are there some sorts of copyright issues that would prevent PIL from doing this? If so, it would be nice to have an option for any open-source ICC profile that is closest to the Adobe one.
UPD: https://www.adobe.com/support/downloads/iccprofiles/iccprofiles_win.html — the profile seems to be available for redistribution as part of a 3rd party software.
Beta Was this translation helpful? Give feedback.
All reactions