Troubles Converting PDF to JPEG

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
Posts: 1
Joined: 2019-09-17T15:10:01+00:00
Authentication code: 1152

Troubles Converting PDF to JPEG

Post by aguerrero »


i'm pretty newbie on imagemagick but right now am facing some troubles trying to convert a PDF file to JPEG, the output image is converted with a dark background (original is white).

What can i do to improve this process?

User avatar
Posts: 25562
Joined: 2007-07-03T00:14:51+00:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Troubles Converting PDF to JPEG

Post by fmw42 »

Please always provide your ImageMagick version and platform. Also your exact command line and your PDF file so we can test it.

My guess is that your PDF file has transparency and JPG does not support transparency.

So try

Code: Select all

convert image.pdf -background white -alpha background image.jpg
If on ImageMagick 7, use magick in place of convert.
Post Reply