Hi all together,
I have different file types which have to be converted to jpg.
All works fine, excepting EPS files.
-> My convert command:
convert targetFile.eps -quality 100 destinationFile.jpg
Original color mode and color profile should not be changed!
Exception: 8-Bit color depth for desination jpg file.
-> My Problem:
My destination jpg file has a different look compared with my original eps file.
Example 1:
Colors look different - brown is a little bit darker - silver is a litte bit more darker too.
Example 2:
Destination jpg file is overlayed with a white layer (opacity around 30%).
-> Versions:
GPL Ghostscript 8.64
ImageMagick 6.5.9-6
-> Examples:
Example 1: http://rapidshare.com/files/382966996/e ... 1.zip.html
Example 2: http://rapidshare.com/files/382967514/e ... 2.zip.html
Let me know, if you are missing information.
I'm really interested in the solution and what is the reason for my problem.
Best regards,
Aure
EPS to JPG - a problematic convert - example files existing
Re: EPS to JPG - a problematic convert - example files exist
Are these JPGs ok?
http://rapidshare.com/files/383392411/images.zip.html
If yes, then I think you should try again with the latest versions.
I produced the two JPGs with Ghostscript 8.71 and ImageMagick 6.6.1-5, with your "convert targetFile.eps -quality 100 destinationFile.jpg" command (the second file with quality 92). Looks fine to me.
Your old example 2 JPG (the CMYK file) is totally wrong of course (no usable 'Black' channel). Your example 1 JPG (the RGB one) seems to be better. I don't know.. If this one is wrong, maybe a eciRGB->sRGB conversion was done one time too much. (It's suspicious: My example 1 JPG, when converted into sRGB, looks the same as your example 1 JPG when viewed without the color profiles. But maybe it's just a coincidence.)
http://rapidshare.com/files/383392411/images.zip.html
If yes, then I think you should try again with the latest versions.
I produced the two JPGs with Ghostscript 8.71 and ImageMagick 6.6.1-5, with your "convert targetFile.eps -quality 100 destinationFile.jpg" command (the second file with quality 92). Looks fine to me.
Your old example 2 JPG (the CMYK file) is totally wrong of course (no usable 'Black' channel). Your example 1 JPG (the RGB one) seems to be better. I don't know.. If this one is wrong, maybe a eciRGB->sRGB conversion was done one time too much. (It's suspicious: My example 1 JPG, when converted into sRGB, looks the same as your example 1 JPG when viewed without the color profiles. But maybe it's just a coincidence.)
Re: EPS to JPG - a problematic convert - example files exist
I found a difference regarding channels.
Channels for EPS:

Channels for JPG:

If I have a look on the black channel in the eps file, there is no information!
Channel statistics:
Cyan:
min: 0 (0)
max: 65535 (1)
mean: 37218.2 (0.567913)
standard deviation: 15422 (0.235324)
kurtosis: -0.192553
skewness: -0.979351
Magenta:
min: 0 (0)
max: 59110 (0.901961)
mean: 46570.2 (0.710616)
standard deviation: 12242.9 (0.186815)
kurtosis: 3.9274
skewness: -2.12005
Yellow:
min: 0 (0)
max: 65535 (1)
mean: 49654.3 (0.757676)
standard deviation: 11397.4 (0.173914)
kurtosis: 5.56049
skewness: -2.42058
Black:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: 0 (0)
kurtosis: 0
skewness: 0
If there is no information regarding the Black channel, the jpg file is of course not able to have this information!
Where is the black channel information fo the eps file, which is obviously there?
And how can I get this information to my jpg file?
Anyone got an idee?
Best regards
EDIT:
Thank you for your information Drarakel!
I didn't see your post before I posted mine.
I will check your post and answer later.
Channels for EPS:

Channels for JPG:

If I have a look on the black channel in the eps file, there is no information!
Channel statistics:
Cyan:
min: 0 (0)
max: 65535 (1)
mean: 37218.2 (0.567913)
standard deviation: 15422 (0.235324)
kurtosis: -0.192553
skewness: -0.979351
Magenta:
min: 0 (0)
max: 59110 (0.901961)
mean: 46570.2 (0.710616)
standard deviation: 12242.9 (0.186815)
kurtosis: 3.9274
skewness: -2.12005
Yellow:
min: 0 (0)
max: 65535 (1)
mean: 49654.3 (0.757676)
standard deviation: 11397.4 (0.173914)
kurtosis: 5.56049
skewness: -2.42058
Black:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: 0 (0)
kurtosis: 0
skewness: 0
If there is no information regarding the Black channel, the jpg file is of course not able to have this information!
Where is the black channel information fo the eps file, which is obviously there?
And how can I get this information to my jpg file?
Anyone got an idee?
Best regards
EDIT:
Thank you for your information Drarakel!
I didn't see your post before I posted mine.
I will check your post and answer later.
Re: EPS to JPG - a problematic convert - example files exist
Your version of example 1 JPG with RGB is fine!Drarakel wrote:Are these JPGs ok?
http://rapidshare.com/files/383392411/images.zip.html
I'll check the version and come back to this point later.
It looks fine to me too.Drarakel wrote: If yes, then I think you should try again with the latest versions.
I produced the two JPGs with Ghostscript 8.71 and ImageMagick 6.6.1-5, with your "convert targetFile.eps -quality 100 destinationFile.jpg" command (the second file with quality 92). Looks fine to me.
I'll built a new rpm tomorrow.
Does that mean, that I'am working on a corrupted or "wrong" eps file or does that mean that this eps file can't be handled by imageMagick?Drarakel wrote: Your old example 2 JPG (the CMYK file) is totally wrong of course (no usable 'Black' channel).
In my post above you can see, that photoshop is able to get some information out of the black channel - my identify -verbose command says there is no information in the black channel.
Re: EPS to JPG - a problematic convert - example files exist
I found the solution:
Older Versions of
Ghostscript 8.65 and ImageMagick 6.5.9 are not able to handle eps files with CMYK.
No Black Channel will be found.
The problem seems to be fixed in:
Ghostscript 8.71 and ImageMagick 6.6.1-5
Now eps files with CMYK and RGB are converted to jpg the right way.
-> convert target.eps -quality 100 destiny.jpg
Older Versions of
Ghostscript 8.65 and ImageMagick 6.5.9 are not able to handle eps files with CMYK.
No Black Channel will be found.
The problem seems to be fixed in:
Ghostscript 8.71 and ImageMagick 6.6.1-5
Now eps files with CMYK and RGB are converted to jpg the right way.
-> convert target.eps -quality 100 destiny.jpg
Re: EPS to JPG - a problematic convert - example files exist
Ghostscript alone was probably the 'culprit'.
But be warned: Even with the current versions, some CMYK EPS files could still be problematic.
But be warned: Even with the current versions, some CMYK EPS files could still be problematic.