Converting Photoshop PDF with Transparency

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
dpizzle
Posts: 4
Joined: 2018-10-19T10:29:51-07:00
Authentication code: 1152

Converting Photoshop PDF with Transparency

Post by dpizzle » 2018-10-19T11:52:03-07:00

MacOS High Sierra IM: 7.0.8 GS: 9.25

Converting transparent PDFs created specifically in Photoshop doesn't seem to work. Other transparent PDFs created in other software seems to work ok after getting the conversion settings correct. Issue seems to arise from a white color being multiplied to all transparent pixels.

Input PDF: https://www.dropbox.com/s/7kr7debvkhssd ... t.pdf?dl=0
Expected Output: https://www.dropbox.com/s/4plfecx7y5ih4 ... t.png?dl=0

Some things tried:
gs -sDEVICE=pngalpha -sOutputFile=Output.png -r100 Input.pdf
magick Input.pdf Output.png
magick Input.pdf -alpha on -background none Output.png

Output usually looks something like:
https://www.dropbox.com/s/8m2hfeqf8yx5i ... t.png?dl=0

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

Re: Converting Photoshop PDF with Transparency

Post by fmw42 » 2018-10-19T12:07:10-07:00

I can confirm the same results using IM 6.9.10.12 or 7.0.8.12 with GS 9.24

I would point out that there have been problems reported with GS 9.25, but my GS 9.24 does not work either.

For me it opens fine in Mac Preview (OSX Sierra) and in GraphicsConverter.

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

Re: Converting Photoshop PDF with Transparency

Post by snibgo » 2018-10-19T12:36:58-07:00

It converts fine for me, IM v7.0.7-28 and GS v9.19.
snibgo's IM pages: im.snibgo.com

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

Re: Converting Photoshop PDF with Transparency

Post by fmw42 » 2018-10-19T12:43:05-07:00

That indicates to me that it is likely Ghostscript. Try reinstalling at a version less than 9.24. 9.23 was pretty stable, but you could go back to 9.19 as snibgo has shown that it works.

I would suggest you report this to the Ghostscript developers.

dpizzle
Posts: 4
Joined: 2018-10-19T10:29:51-07:00
Authentication code: 1152

Re: Converting Photoshop PDF with Transparency

Post by dpizzle » 2018-10-19T14:06:07-07:00

Thanks snibgo, perfect conversion with GS 9.19 installed using:

magick Input.pdf Output.png

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

Re: Converting Photoshop PDF with Transparency

Post by fmw42 » 2018-10-21T13:44:32-07:00

I played with your file in Photoshop CC 2018. If I save it again and turn off "Preserve Photoshop Editing Capabilities" in the PDF Save dialog box, then it seems to work fine when I convert to PNG using Ghostscript 9.24.

Post Reply