Page 1 of 1

Troubles Converting PDF to JPEG

Posted: 2019-09-17T08:22:42-07:00
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,

Re: Troubles Converting PDF to JPEG

Posted: 2019-09-17T08:55:03-07:00
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.