Page 1 of 1

PDF To Tiff conversion issue

Posted: 2012-05-15T12:14:39-07:00
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.

Re: PDF To Tiff conversion issue

Posted: 2012-05-15T14:26:56-07:00
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.