Converting several PNGs into a PDF using Imagemagick, I get the following error:
Although the command is valid, checked, correct and everything:convert: not authorized `output.pdf' @ error/constitute.c/WriteImage/1028
Code: Select all
$ convert *.png -resize 1920x1920 -compress jpeg -density 150 -units PixelsPerInch -quality 65% output.pdf
- OS is Xubuntu 16.04.3
- ImageMagick: 8:6.8.9.9-7ubuntu5.13
[SOLUTION]
I haven't checked if this approach is correct (lack of time right now), but here's a quick hack:
In "/etc/ImageMagick-6/policy.xml", replace rights "none" with "read|write" for PDF. Like this:
Code: Select all
<!-- disable ghostscript format types -->
<policy domain="coder" rights="none" pattern="PS" />
<policy domain="coder" rights="read|write" pattern="PDF" />
<policy domain="coder" rights="none" pattern="EPS" />
<policy domain="coder" rights="none" pattern="XPS" />
Links:
https://stackoverflow.com/questions/429 ... dimage-453