ImageMagick PDF to JPGs sometimes results in black background

Ran into this one today, found this:

https://www.imagemagick.org/discourse-server/viewtopic.php?t=20234

Based on that, these should all work:

  • -flatten
  • -alpha flatten
  • -alpha remove

I’m currently using the below for my specific case which works great:

convert -thumbnail "1280x800>" -density 300 -background white -alpha remove in.pdf out.jpg

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)