png with transparency 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
jan82
Posts: 9
Joined: 2018-03-05T06:23:08-07:00
Authentication code: 1152

png with transparency to eps

Post by jan82 »

Hi,

how can I convert a png with transparency to eps keeping the transparency?

Thanks for any help!

Jan
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: png with transparency to eps

Post by snibgo »

What version of IM?

For v6, how about:

Code: Select all

convert in.png EPS3:out.eps
For v7, use "magick" instead of "convert".
snibgo's IM pages: im.snibgo.com
jan82
Posts: 9
Joined: 2018-03-05T06:23:08-07:00
Authentication code: 1152

Re: png with transparency to eps

Post by jan82 »

Thanks for the answer. I tried it but unfortunatelly the transparency is also lost. I end up with a white background.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: png with transparency to eps

Post by snibgo »

What version of IM?

It works fine for me, IM v6.9.5-3.
snibgo's IM pages: im.snibgo.com
jan82
Posts: 9
Joined: 2018-03-05T06:23:08-07:00
Authentication code: 1152

Re: png with transparency to eps

Post by jan82 »

I'm on ImageMagick 7.0.7-8 Q16 x86_64 2017-10-19.

This is a testfile I used just now: https://user-images.githubusercontent.c ... 39e166.png
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: png with transparency to eps

Post by snibgo »

Sorry, I can't download recent versions of IM to test them.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: png with transparency to eps

Post by fmw42 »

It seems to work fine for me using IM 7.0.7.25 Q16 HDRI Mac OSX Sierra
jan82
Posts: 9
Joined: 2018-03-05T06:23:08-07:00
Authentication code: 1152

Re: png with transparency to eps

Post by jan82 »

Ok so I try to update to 7.0.7.25. With 7.0.7.24 it is also failing for me.
pipitas
Posts: 168
Joined: 2012-07-15T14:06:46-07:00
Authentication code: 15

Re: png with transparency to eps

Post by pipitas »

jan82 wrote: 2018-03-05T08:42:25-07:00 I tried it but unfortunatelly the transparency is also lost. I end up with a white background.
What sort of "transparency"? -- You should know that PostScript does not natively support transparency. (Incidentally, this was one of the motivations for Adobe to leave PostScript behind and develop a new document format, PDF, which supports transparency and blending.)

If you mean "transparency == no background color at all to the EPS, but when I place my EPS I can still see-through existing page elements when I place it on top of another page", then my question is: How do you "see" that the EPS isn't transparent (= has no colored background)? -- To really determine that you'd need a native PostScript viewer. Many viewers however do use white backgrounds. You have to use the special background (similar to checkerboard) to indicate transparency -- examples are Apple macOS "Preview.app" or Adobe Acrobat DC Reader.
Post Reply