keep transparent background white convert .png to .eps

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
snapebysnape
Posts: 1
Joined: 2019-01-04T00:48:05-07:00
Authentication code: 1152

keep transparent background white convert .png to .eps

Post by snapebysnape » 2019-01-04T00:52:43-07:00

Hi,
i want to convert .png to .eps files, but actually the transparent background is colored white after execute of this command:

Code: Select all

magick mogrify -format eps -background none -colorspace RGB -channel RGBA *.png
Would be great if you have some advice for me.

User avatar
fmw42
Posts: 24773
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: keep transparent background white convert .png to .eps

Post by fmw42 » 2019-01-04T17:32:41-07:00

I am not able to get a transparent eps using IM 7.0.8.23 Q16 Mac OSX and Ghostscript 9.26

Code: Select all

magick logo: -transparent white -alpha on -channel rgba -type truecoloralpha EPS:logo.eps
Neither Mac Preview nor Photoshop nor IM display will show the transparency.

So I would post your questions to the Developer's forum and put a link to this topic. Also post your IM version and platform? And Ghostscript version.

User avatar
magick
Site Admin
Posts: 10936
Joined: 2003-05-31T11:32:55-07:00

Re: keep transparent background white convert .png to .eps

Post by magick » 2019-01-05T06:44:45-07:00

Try

Code: Select all

magick logo: -transparent white -alpha on -channel rgba -type truecoloralpha EPS3:logo.eps

User avatar
fmw42
Posts: 24773
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: keep transparent background white convert .png to .eps

Post by fmw42 » 2019-01-05T11:06:09-07:00

Thanks.

That works OK only when viewing in IM display and Mac GraphicConverter. It does not show transparency in Mac Preview and shows transparency in odd places when viewed with Photoshop.

Post Reply