Python Wand converts from PDF to JPG background is incorrect

后端 未结 3 787
北恋
北恋 2020-12-10 18:30

I found a so wired thing while converting a pdf to jpeg, so i\'d like to figure out that maybe this is a small bug. See the converted jpg below, you could find that, the bac

3条回答
  •  一生所求
    2020-12-10 19:21

    For others who still have this problem I fixed it after googling and trying a couple of hours thanks to this question https://stackoverflow.com/a/40494320/2686243 by using this two lines:

    img.background_color = Color("white")
    img.alpha_channel = 'remove'
    

    Tried with Wand version 0.4.4

提交回复
热议问题