Error 412: convert .eps to .png

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
Thesa
Posts: 1
Joined: 2019-11-12T03:46:53-07:00
Authentication code: 1152

Error 412: convert .eps to .png

Post by Thesa » 2019-11-12T05:56:07-07:00

Hello,

I just installed the newest version of image Magick (7.0.9-2) on the ubuntu 18 version.
Now I am trying to convert an .eps file to .png.
I am typing:
convert -trim xxxx.eps xxxx.png
The error is: convert-im6.q16: not authorized `xxx.eps' @ error/constitute.c/ReadImage/412.

I don't know how to solve this problem? I would really appreciate some helpful informations!
Thanks in advance,
Thesa

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

Re: Error 412: convert .eps to .png

Post by snibgo » 2019-11-12T06:12:32-07:00

thesa wrote:not authorized `xxx.eps'
Check your policy.xml. I suspect something in there prohibits reading eps files.

Note also that IM delegates reading eps files to Ghostscript.

Also: for v7, I suggest you use "magick", not "convert". And "-trim" is an operation that needs an image, so should come after you read the input, not before.
snibgo's IM pages: im.snibgo.com

Post Reply