I have tried the following commands
-alpha off
-background white
-flatten
So my command looks like:
Code: Select all
exec("convert -alpha off input.pdf -resize 500x700! -background white -flatten -quality 90 output.jpg");
Thanks for your help!
Code: Select all
exec("convert -alpha off input.pdf -resize 500x700! -background white -flatten -quality 90 output.jpg");