Conversion Problems from CMYK
Posted: 2010-04-11T10:35:30-07:00
We are trying to read in images uploaded by potential customers, convert them to PNG, and output the image on the screen for the customer to manipulate size and position on a t-shirt.
The problem we're running into is CMYK files. Whenever we convert to PNG, we have loss of color. We know the colorspace is being automatically converted to RGB since PNG only supports RGB.
However, when we convert CMYK files to JPG to allow the colorspace to remain the same, we still have color shift. Again, this only happens when using CMYK source files.
This problem is not happening when we use RGB source files.
We did a test with a color chart image we grabbed off the web. Here is the source file we're using (we've tried it with several different source formats all with the same results):
CMYK PDF Color Chart
And here are some of the outputs we've tried:
Convert to JPG (and allow colorspace to remain CMYK) - convert ColorChartCMYK.pdf -colorspace CMYK ColorChartCMYK.pdf.cmyk.jpg
Convert to JPG (convert to RGB) - convert ColorChartCMYK.pdf -colorspace RGB ColorChartCMYK.pdf.rgb.jpg
Convert to PNG - convert ColorChartCMYK.pdf ColorChartCMYK.pdf.png
As you can see, all the results look the same - just off enough to be noticeable. Unfortunately, we're not really knowledgeable when it comes to digital image formats so we could be doing something completely wrong. One option we have is to just tell customers they have to use RGB images, but we'd like to allow any formats we can make work.
Thanks in advance!
The problem we're running into is CMYK files. Whenever we convert to PNG, we have loss of color. We know the colorspace is being automatically converted to RGB since PNG only supports RGB.
However, when we convert CMYK files to JPG to allow the colorspace to remain the same, we still have color shift. Again, this only happens when using CMYK source files.
This problem is not happening when we use RGB source files.
We did a test with a color chart image we grabbed off the web. Here is the source file we're using (we've tried it with several different source formats all with the same results):
CMYK PDF Color Chart
And here are some of the outputs we've tried:
Convert to JPG (and allow colorspace to remain CMYK) - convert ColorChartCMYK.pdf -colorspace CMYK ColorChartCMYK.pdf.cmyk.jpg
Convert to JPG (convert to RGB) - convert ColorChartCMYK.pdf -colorspace RGB ColorChartCMYK.pdf.rgb.jpg
Convert to PNG - convert ColorChartCMYK.pdf ColorChartCMYK.pdf.png
As you can see, all the results look the same - just off enough to be noticeable. Unfortunately, we're not really knowledgeable when it comes to digital image formats so we could be doing something completely wrong. One option we have is to just tell customers they have to use RGB images, but we'd like to allow any formats we can make work.
Thanks in advance!