Page 1 of 1

png with transparency to eps

Posted: 2018-03-05T06:26:21-07:00
by jan82
Hi,

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

Thanks for any help!

Jan

Re: png with transparency to eps

Posted: 2018-03-05T08:13:18-07:00
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".

Re: png with transparency to eps

Posted: 2018-03-05T08:42:25-07:00
by jan82
Thanks for the answer. I tried it but unfortunatelly the transparency is also lost. I end up with a white background.

Re: png with transparency to eps

Posted: 2018-03-05T08:45:50-07:00
by snibgo
What version of IM?

It works fine for me, IM v6.9.5-3.

Re: png with transparency to eps

Posted: 2018-03-05T08:52:00-07:00
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

Re: png with transparency to eps

Posted: 2018-03-05T08:56:17-07:00
by snibgo
Sorry, I can't download recent versions of IM to test them.

Re: png with transparency to eps

Posted: 2018-03-05T11:12:28-07:00
by fmw42
It seems to work fine for me using IM 7.0.7.25 Q16 HDRI Mac OSX Sierra

Re: png with transparency to eps

Posted: 2018-03-06T00:38:56-07:00
by jan82
Ok so I try to update to 7.0.7.25. With 7.0.7.24 it is also failing for me.

Re: png with transparency to eps

Posted: 2018-03-21T10:37:54-07:00
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.