Bug #86369

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

Added by Danilo Godec 12 months ago. Updated 12 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Image Generation / GIFBUILDER
Target version:
-
Start date:
2018-09-25
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
Tags:
GraphicsMagick ImageMagick
Complexity:
Is Regression:
Sprint Focus:

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.

delegates.mgk.diff View (4.37 KB) Danilo Godec, 2018-09-25 11:57

gm-wrapper (308 Bytes) Danilo Godec, 2018-09-25 11:58


Related issues

Related to TYPO3 Core - Bug #86368: Convert/Read PDF and AI Graphics Magick TEST problem Needs Feedback 2018-09-25

History

#1 Updated by Josef Glatz 12 months ago

  • Category changed from Content Rendering to Image Generation / GIFBUILDER

#3 Updated by Josef Glatz 12 months ago

  • Related to Bug #86368: Convert/Read PDF and AI Graphics Magick TEST problem added

Also available in: Atom PDF