EPS to PNG colors

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
MidnightMotion

EPS to PNG colors

Post 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"
MidnightMotion

Re: EPS to PNG colors

Post by MidnightMotion »

Problem is still there, has anyone any idea what I could try?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: EPS to PNG colors

Post 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
MidnightMotion

Re: EPS to PNG colors

Post 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?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: EPS to PNG colors

Post 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.
Post Reply