ImageMagick not authorized to convert PDF to an image

前端 未结 4 1184
误落风尘
误落风尘 2020-11-22 06:01

I have a program, in which I need to convert a PDF to an image using Image Magick. I do that using the subprocess package:

        cmd = \'magic         


        
4条回答
  •  佛祖请我去吃肉
    2020-11-22 06:37

    Use the below command to delete the policy file to fix it, If required you can also take backup of this policy file.

    rm /etc//policy.xml
    

    for me it was ImageMagick6 and the command was :

    sudo rm /etc/ImageMagick-6/policy.xml
    

提交回复
热议问题