The best way to obtain a pdf with transparent background

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
dango

The best way to obtain a pdf with transparent background

Post by dango »

Hello. Which is the best way to obtain a pdf with transparent background starting from a single .png image? I type from command line (the image stands on a white background):

Code: Select all

convert -transparent white image.png image.pdf
Is this the right way to procede? Is there any other thing or option to use?
Thanks for your help.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: The best way to obtain a pdf with transparent background

Post by anthony »

That will only make pure white transparent. It will leave a white halo around everything.

There are a couple of different methods. See IM examples, postscript to image
http://www.imagemagick.org/Usage/text/#postscript
for the basic methods.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply