PDF To Tiff conversion issue

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
lesaboteur
Posts: 1
Joined: 2012-05-15T12:08:52-07:00
Authentication code: 13

PDF To Tiff conversion issue

Post by lesaboteur »

Not always but occasionally when I try to convert some pdfs to a tiff using ImageMagick their backgrounds which were previously white turn either a dark grey or in one case the tiff came out completely green. Here's the convert command I'm using currently: convert -density 288 "fileName.pdf" -alpha off -background None -layers merge "fileName.tif"

Any suggestions/help would be greatly appreciated.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PDF To Tiff conversion issue

Post by fmw42 »

Your pdf probably was transparent and had that background color. By turning transparency off, you expose the given underlying color. If you want to retain the transparency as you used -background none, then remove the -alpha off. If you want to make some other color rather than transparent, then use

convert -density 288 "fileName.pdf" -background somecolor -layers merge "fileName.tif

or just use -flatten rather than -layers merge.
Post Reply