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?
not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback
-
- Posts: 12159
- 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
What version of IM?
It is likely that policy.xml prohibits you from reading SVG. Can you paste the contents of policy.xml here?
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
-
- 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
I have the same issue
Command failed: identify: not authorized `/tmp/magick-OgHGi6xW' @ error/constitute.c/ReadImage/454
I use command:
Command runs in aws lambda
My policies:
Version of IM 6.7.8
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
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="@*" />
-
- Posts: 12159
- 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
I suggest you remove or comment-out the MVG line.
snibgo's IM pages: im.snibgo.com