Convert eps to opaque png

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
ztrange

Convert eps to opaque png

Post by ztrange »

Hello, I'm trying to use the convert tool to crate an opaque png from an eps file.

I tried

convert 1.eps 1.png
convert 1.eps -background white 1.png
convert 1.eps -transparent-color white 1.png
convert 1.eps -channel RGB 1.png
convert 1.eps -channel RGB -matte 1.png

And well, I keep getting a transparent background png.
I googled and only got the way to get transparent pngs from eps but that I already got it.
Also, couldnt search in this forum with eps and png in the search string since it blocks those small words.

Any help will be appreciated
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Convert eps to opaque png

Post by magick »

Try the +matte option.
ztrange

Re: Convert eps to opaque png

Post by ztrange »

Thanks, it worked, I had just tried the -flatten option and it also worked, but well, it says it is for a sequece of images.

Thanks for your help, I'll be using the +matte option.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert eps to opaque png

Post by fmw42 »

-alpha off should give the same results as +matte.

see http://www.imagemagick.org/script/comma ... .php#alpha
Post Reply