Page 1 of 1
not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback
Posted: 2018-02-19T23:44:45-07:00
by vedsingh
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?
Re: not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback
Posted: 2018-02-20T02:28:11-07:00
by snibgo
What version of IM?
It is likely that policy.xml prohibits you from reading SVG. Can you paste the contents of policy.xml here?
Re: not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback
Posted: 2018-05-11T02:52:16-07:00
by vrabeshkoxb
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
Re: not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback
Posted: 2018-05-11T08:52:04-07:00
by snibgo
I suggest you remove or comment-out the MVG line.