ImageMagick "not authorized" PDF errors

Hi there I was trying to convert some images into PDFs using ImageMagick's "convert" tool and encountered a "not authorized" error, something similar to the following: convert-im6.q16: not authorized `scan.pdf' @ error/constitute.c/WriteImage/1037. Took me a while figuring that one out. As it turns out, this is due to ImageMagick's security policy being tightened up (no default rights for PDF/PS): /etc/ImageMagick-6/policy.xml You can, of course, re-enable support for PDF/PS. See the following post: https://cromwell-intl.com/open-source/pdf-not-authorized.html Cheers, Peter -- Peter Reutemann Dept. of Computer Science University of Waikato, NZ +64 (7) 858-5174 http://www.cms.waikato.ac.nz/~fracpete/ http://www.data-mining.co.nz/

On Fri, 10 May 2019 10:52:47 +1200, Peter Reutemann wrote:
You can, of course, re-enable support for PDF/PS. See the following post: https://cromwell-intl.com/open-source/pdf-not-authorized.html
That description is incorrect. PDF is not PostScript; it explicitly leaves out all the programming-language constructs of PostScript. The risks with PDF come from other things, like embedded links, and I think you can also embed JavaScript--which reintroduces all the programming-language-vulnerability headaches. None of this should be relevant to what I thought should be a simple task: converting a sequence of scanned page images to a PDF file.

On Fri, 10 May 2019 10:52:47 +1200, Peter Reutemann wrote:
I was trying to convert some images into PDFs using ImageMagick's "convert" tool and encountered a "not authorized" error ...
ImageMagick seems to have other limitations as well. I have a rather large image texture (about 22000 by 2000 pixels) that I put together for one of my renders, and ImageMagick’s “display” command will not display it. Though of course Blender can read it just fine, and Gimp can also load it in.
participants (2)
-
Lawrence D'Oliveiro
-
Peter Reutemann