FS#60607 - imagemagick 7.0.8.14-1 gives an error trying to write an image to a PDF file

Attached to Project: Arch Linux
Opened by M. Edward (Ed) Borasky (znmeb) - Saturday, 27 October 2018, 03:06 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 27 October 2018, 06:57 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: imagemagick 7.0.8.14-1 gives an error trying to write an image to a PDF file:

attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408>

Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:
1. Install imagemagick and the R `magick` package. This is probably reproducible from the command line but I don't have anything set up that way.
2. Try to write a PDF using `magick::image_write`.

Notes:
1. Older versions work; the last good version was imagemagick 7.0.8.13-1
2. There's a GitHub issue that has the fix: https://github.com/ImageMagick/ImageMagick/issues/1310. You have to edit the file `/etc/ImageMagick-7/policy.xml` and change the line ` <policy domain="coder" rights="none" pattern="{PS,PS2,PS3,EPS,PDF,XPS}" />` to ` <policy domain="coder" rights="all" pattern="{PS,PS2,PS3,EPS,PDF,XPS}" />`
This task depends upon

Closed by  Antonio Rojas (arojas)
Saturday, 27 October 2018, 06:57 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#60580 

Loading...