Hello,
I had this issue while trying to convert some images into a pdf document
whith ImageMagick, even with sudo.
https://stackoverflow.com/questions/42928765/convertnot-authorized-aaaa-error-constitute-c-readimage-453/52661288#52661288
The workaround indicated in the topic worked well, but when I see the note on
top of the post, I wonder if I should let things like this, or use a more
reliable solution (it's on my local machine, not a server) :
Note: the solution in this and other answers involves disabling safety
measures that are there to fix arbitrary code execution vulnerabilities. See
for instance this ghostscript-related and this ubuntu-related announcement.
Only go forward with these solutions if the input to convert comes from a
trusted source.