not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
vedsingh
Posts: 1
Joined: 2018-02-19T03:07:23-07:00
Authentication code: 1152

not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback

Post by vedsingh » 2018-02-19T23:44:45-07:00

I am using wand package for image resizing (http://docs.wand-py.org/en/0.4.4/). It all works well with rest of image type i.e. jpg,png,gif but while resizing SVG image it is giving not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback error.

As per research, Changing policy of MVG to Read in policy.xml might resolve the error, is this correct?
Also i am using AWS lambda and image Magick is installed on lambda server for which we do not have access. Any idea we can fix this issue?

snibgo
Posts: 10978
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback

Post by snibgo » 2018-02-20T02:28:11-07:00

What version of IM?

It is likely that policy.xml prohibits you from reading SVG. Can you paste the contents of policy.xml here?
snibgo's IM pages: im.snibgo.com

vrabeshkoxb
Posts: 1
Joined: 2018-05-11T02:48:38-07:00
Authentication code: 1152

Re: not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback

Post by vrabeshkoxb » 2018-05-11T02:52:16-07:00

I have the same issue
Command failed: identify: not authorized `/tmp/magick-OgHGi6xW' @ error/constitute.c/ReadImage/454

I use command:

Code: Select all

convert in.svg -synchronize -channel A -ordered-dither checks out.png
Command runs in aws lambda

My policies:

Code: Select all

  <policy domain="coder" rights="none" pattern="EPHEMERAL" />
  <policy domain="coder" rights="none" pattern="HTTPS" />
  <policy domain="coder" rights="none" pattern="HTTP" />
  <policy domain="coder" rights="none" pattern="URL" />
  <policy domain="coder" rights="none" pattern="FTP" />
  <policy domain="coder" rights="none" pattern="MVG" />
  <policy domain="coder" rights="none" pattern="MSL" />
  <policy domain="coder" rights="none" pattern="TEXT" />
  <policy domain="coder" rights="none" pattern="LABEL" />
  <policy domain="path" rights="none" pattern="@*" />
Version of IM 6.7.8

snibgo
Posts: 10978
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback

Post by snibgo » 2018-05-11T08:52:04-07:00

I suggest you remove or comment-out the MVG line.
snibgo's IM pages: im.snibgo.com

Post Reply