Page 1 of 1

PDF's Invisible Layers

Posted: 2010-07-07T08:29:56-07:00
by elisegev
This is for ImageMagick 6.6.2. I have a Postscript file that is shown in Ghostscript 8.71 (gswin32) as having a white background, but in imdisplay it has a checkered background. Why? I believe that the way Ghostscript is showing the file is the correct one.

The file was generated with the pdf2ps (Ghostscript 8.71) utility from a PDF file that has several layers. Some layers are visible and some are not. When I use the convert utility to do PDF -> PNG with the flatten option, I get some features that are not in the original file. Why?

When I do PDF -> PS with pdf2ps and then use convert to do PS -> PNG with the flatten option, I get the correct image. I guess imdisplay does not support the flatten option as does convert. Are there any optional directives that can convert the PDF to PNG correctly?

Re: PDF's Invisible Layers

Posted: 2010-07-07T10:24:11-07:00
by fmw42
your pdf apparently has transparency so IM displays that with a checkered background.

flattening will take all layers and transparency and merge with some background color to make an image with one composite layer.

Re: PDF's Invisible Layers

Posted: 2010-07-07T10:35:25-07:00
by elisegev
fmw42 wrote:your pdf apparently has transparency so IM displays that with a checkered background.

flattening will take all layers and transparency and merge with some background color to make an image with one composite layer.
Why checkered background? Ghostscript does not put a checkered background to the image.

Re: PDF's Invisible Layers

Posted: 2010-07-07T13:12:27-07:00
by fmw42
Why checkered background? Ghostscript does not put a checkered background to the image.
I believe that is how the IM display program works with transparent images on Linux.

Photoshop does that also.

Re: PDF's Invisible Layers

Posted: 2010-07-07T13:34:50-07:00
by snibgo
Gimp and many other tools also show a chequer background through transparency.

Other software shows white. Some show black.

Re: PDF's Invisible Layers

Posted: 2010-07-07T13:58:45-07:00
by fmw42
snibgo wrote:Gimp and many other tools also show a chequer background through transparency.

Other software shows white. Some show black.

Unfortunately on the Mac (OSX TIGER), I get no background and see right to my desktop. This is very awkward. It needs a background (gray or checkered)!

convert logo: -transparency white logot.png
display logot.png

same with

convert logot.png show:

Happens with png or gif

Re: PDF's Invisible Layers

Posted: 2010-07-07T17:37:26-07:00
by snibgo
fmw42 wrote:Unfortunately on the Mac (OSX TIGER), I get no background and see right to my desktop. This is very awkward.
That's probably the most logical scheme, until they can make computer screen go transparent so we can see the physical wall behind them.