Issue Bug Closed

#86369GraphicsMagick / ImageMagick in some distros dropping 'default' support for PDF

Danilo Godec 09/25/18, 12:44 updated 06/23/24, 20:45

Description

According to https://bugzilla.opensuse.org/show_bug.cgi?id=1105592#c25 OpenSuSE GraphicskMagick and ImageMagick packages are dropping support for PDF files ‘by default’.

I’ve experienced this on OpenSuSE Leap 42.3 with GraphicsMagick-1.3.25-105.1 (and newer) – to make it work, I had to:

1. Replace the ‘packaged’ version of /usr/lib64/GraphicsMagick-1.3.25/config/delegates.mgk with an older version from backups – they removed everything regarding PDF and PostScript, that’s using Ghostscript (diff is attached)
2. Create a ‘wrapper’ script /usr/bin/gm-wrapper to add an environment variable ‘MAGICK_CODER_STABILITY=BROKEN’ before running the actual GM binary (script is attached)
3. Rename /usr/bin/gm to /usr/bin/gm-bin
4. Symlink /usr/bin/gm -> /usr/bin/gm-wrapper

Note that ImageMagick has different workaround(s).

I’m posting this mainly to help others that may experience this issue, but also as a reminder that Typo3 might need to implement a different PDF to image conversion method.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 2

History 5

  1. Josef Glatz changed category 09/26/18, 06:46

  2. Josef Glatz changed Related to #86368 09/26/18, 14:44

  3. Simon Schaufelberger commented 03/14/22, 22:21

    See https://stackoverflow.com/questions/60141724/typo3-image-manipulation-also-for-pdf-files as a solution (comment out “<policy domain="coder" rights="none" pattern="PDF"></policy>“)

  4. Georg Ringer commented and changed status New Closed 06/23/24, 20:45

    as nothing is to do, I am closing this issue