Page 1 of 1

EPS to PNG colors

Posted: 2009-10-26T02:31:43-07:00
by MidnightMotion
I'm trying to convert a series of EPS images to PNG (or other formats) but I can't get the colors right (green for example is brighter than it should be)

I read the solution to this is often to include the color profile but there isn't one in the EPS file. I tried opening the EPS and saving it with the profile included, then extracting the profile and passing it to the convert action but without success so far.

The command I use is the following (with a profile included):

Code: Select all

convert -density 700x700 -colorspace CMYK "image.eps" -profile "profile.xmp" -transparent black -trim -quality 100 -resize 1500 "image.png"

Re: EPS to PNG colors

Posted: 2009-11-30T06:33:54-07:00
by MidnightMotion
Problem is still there, has anyone any idea what I could try?

Re: EPS to PNG colors

Posted: 2009-11-30T10:35:11-07:00
by fmw42
don't know too much about eps files. But have you tried converting it to RGB when reading it in by using -colorspace RGB where you have -colorspace CMYK

Re: EPS to PNG colors

Posted: 2009-12-02T02:05:31-07:00
by MidnightMotion
fmw42 wrote:don't know too much about eps files. But have you tried converting it to RGB when reading it in by using -colorspace RGB where you have -colorspace CMYK
Thanks for the reply, I did try that but it doesn't make a difference... I also see transparency doesn't work anymore, this worked before but apparently I changed something in the parameters that breaks it? :? Also, if I convert to JPG the colors are all wrong (lots of black).

To sum it up:
- Converting to PNG or GIF results in images with a white background instead of transparent
- Converting to PNG, GIF or JPG screws up the colors

Anyone?

Re: EPS to PNG colors

Posted: 2009-12-02T11:26:40-07:00
by fmw42
jpg does not support transparency and neither does certain png formats. you need to use PNG32 to preserve transparency. and GIF supports only binary transparency. So if you eps file has partial transparency then you must use PNG32. see http://www.imagemagick.org/Usage/formats/#png_formats But again I know little about eps, so probably cannot help much on this issue.