ImageMagick PDF to JPGs sometimes results in black background

后端 未结 3 1996
庸人自扰
庸人自扰 2021-02-02 06:05

I have the following:

ghostscript-fonts-5.50-24
ImageMagick-6.7.2-1
ghostscript-9.02-1

Which I use to create a series of JPGs for each page usi

3条回答
  •  离开以前
    2021-02-02 06:54

    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
    

提交回复
热议问题