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

Troubles Converting PDF to JPEG

Post by aguerrero »

Hello,

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?

Regards,
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07: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