whugemann wrote:Convert seems to be unimpressed by the option -background, no matter whether you place it before or after the PDF.
-background is a setting and does nothing by itself. It needs an operator to act upon it, such as -flatten, etc. see http://www.imagemagick.org/Usage/basics/#options
User, snibgo, used -alpha remove as the operator, which should work to change the transparency to some color.
Also I downloaded the vector.pdf and IM could not open it on my Mac OSX Snow Leopard IM 184.108.40.206 Q16, though my browser shows it fine.
identify -verbose vector.pdf
identify: unable to load module `/usr/local/lib/ImageMagick-6.8.0/modules-Q16/coders/pdf.la': file not found @ error/module.c/OpenModule/1278.
identify: no decode delegate for this image format `vector.pdf' @ error/constitute.c/ReadImage/550.
I am not sure what is the issue with this file?
Back to the transparency issue. This seems to work fine for me on IM 220.127.116.11 Q16
#create transparent pdf
convert logo: -transparent white logo.pdf
#result is a transparent png
convert logo_trans.pdf logo_trans.png
#result is a green background png
convert logo_trans.pdf -background green -flatten logo_green.png