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 imageIn.pdf': No such file or directory @ error/blob.c/OpenBlob/2701.
convert-im6.q16: not authorized
In.pdf' @ error/constitute.c/ReadImage/412. convert-im6.q16: no images defined `Out.jpg' @ error/convert.c/ConvertImageCommand/3258.
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