Project

General

Profile

Actions

Bug #86369

open

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

Added by Danilo Godec over 5 years ago. Updated about 2 years ago.

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

0%

Estimated time:
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.


Files

delegates.mgk.diff (4.37 KB) delegates.mgk.diff Danilo Godec, 2018-09-25 11:57
gm-wrapper (308 Bytes) gm-wrapper Danilo Godec, 2018-09-25 11:58

Related issues 1 (0 open1 closed)

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

Actions
Actions #1

Updated by Josef Glatz over 5 years ago

  • Category changed from Content Rendering to Image Generation / GIFBUILDER
Actions #3

Updated by Josef Glatz over 5 years ago

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

Updated by Simon Schaufelberger about 2 years ago

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" />")

Actions

Also available in: Atom PDF