Wand Policy Error: error/constitute.c/ReadImage/412

后端 未结 3 1972
终归单人心
终归单人心 2020-12-09 16:36

I am facing the issue while converting pdf to image using Wand:

E           wand.exceptions.PolicyError: not authorized `/opt/sample.pdf\' @ error/constitute.         


        
3条回答
  •  余生分开走
    2020-12-09 17:06

    This is probably due to an security fix of the underlaying package (see https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1796563)

    I fixed it for me by editing the /etc/ImageMagick-6/policy.xml and changed the rights for the pdf line to "read":

    
    

提交回复
热议问题