How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

January 30, 2020

Ubuntu 18 imagemagick convert: not authorized

Filed under: Linux — Tags: , , , — admin @ 7:01 pm

Well on ubuntu 18 try to convert some pdf error

convert: not authorized /pdf/original/70/5770.pdf' @ error/constitute.c/ReadImage/412. convert: no images defined/pdf/processed/70/5770.jpg’ @ error/convert.c/ConvertImageCommand/3258.

The solution is to modify the /etc/ImageMagick-6/policy.xml

At the end this

domain=”coder” rights=”none” pattern=”PDF”

Into this

domain=”coder” rights=”read|write” pattern=”PDF”

Powered by WordPress