jpeg => pdf

just for the record:

https://stackoverflow.com/questions/52998331/imagemagick-security-polic…

avagy:

$ convert papir1.jpeg papir1.pdf
convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/426.

Hozzászólások

Marmint:

Well, I added

  <policy domain="coder" rights="read | write" pattern="PDF" />

just before </policymap> in /etc/ImageMagick-7/policy.xml and that makes it work again, but not sure about the security implications of that.

Igen, ez ilyen. Egy eve futtoam bele talan nem kis oromomre.

Ott van:

 

This issue is a workaround for a security vulnerability. The vulnerability has been addressed in Ghostscript 9.24, so if you have that or a newer version, you don't need the workaround anymore.

 

Lásd a linkelt oldalt:

 

This issue is addressed in Ghostscript version 9.24. Please also consider the following workarounds:

Disable PS, EPS, PDF, and XPS coders in ImageMagick policy.xml

ImageMagick uses Ghostscript by default to process PostScript content. ImageMagick can be controlled via the policy.xml security policy to disable the processing of PS, EPS, PDF, and XPS content. 

Tessék mondani, ez már a linuxdeszktop éve?

Ebbe nem futottam bele, nekem már a convert parancsra sír az ImageMagick Arch Testingen, hogy deprecated. Megcsinálja a műveletet, mindenféle jogosultsághegesztés nélkül konvertál jpeg-ből vagy png-ből pdf-be, csak levág mellé egy egysoros rinyát. Csomagverziók: ghostscript 10.03.1 és imagemagick 7.1.1.34.
 

The world runs on Excel spreadsheets. (Dylan Beattie)