How to Fix ImageMagick error: convert-im6.q16: unable to open image

I this article I will show how to easy fix ImageMagick error: convert-im6.q16: unable to open image

During converting from PDF to JPG with ImageMagick in Ubuntu Linux you can have conversion error:

convert-im6.q16: unable to open image In.pdf': No such file or directory @ error/blob.c/OpenBlob/2701.
convert-im6.q16: not authorizedIn.pdf' @ error/constitute.c/ReadImage/412.
convert-im6.q16: no images defined `Out.jpg' @ error/convert.c/ConvertImageCommand/3258.
convert-im6.q16

To fix that error edit with any text editor file policy.xml:

# nano /etc/ImageMagick-6/policy.xml

And change:

<policy domain="coder" rights="none" pattern="PDF" />

to:

<policy domain="coder" rights="read | write" pattern="PDF" />

Then save changes.

And run convert command again. Now problem with error mus be resolved.

Discuss article in ArsTech Forum

HOW TO CONVERT PDF TO JPG IN LINUX USING COMMAND LINE

   

If you like what you are reading, please:

Buy me a coffeeBuy me a coffee

arstech

Leave a Reply