Defect #34896

PDF thumbnails are not displayed even though "ImageMagick PDF support available (optional)" is checked

Added by Mizuki ISHIKAWA 7 months ago. Updated 5 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Administration
Target version:-
Resolution: Affected version:

Description

This is a issue related to #34397.
Due to recent changes in ImageMagick, PDF cannot be converted to PNG without rewriting the policy.xml file.
https://stackoverflow.com/questions/52861946/imagemagick-not-authorized-to-convert-pdf-to-an-image

I think you should check if ImageMagick has permission to convert PDF to PNG and then check "ImageMagick PDF support available (optional)" in Infomation.

information.png (64 KB) Mizuki ISHIKAWA, 2021-03-16 08:21

History

#1 Updated by Plastik Schnitzer 6 months ago

I experience this issue in Redmine version 4.2.0 in the docker version. All PDF thumbnail images are broken, but not image preview thumbnails.

Environment:
  Redmine version                4.2.0.stable
  Ruby version                   2.7.3-p183 (2021-04-05) [x86_64-linux]
  Rails version                  5.2.5
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp

#2 Updated by Mizuki ISHIKAWA 6 months ago

Plastik Schnitzer wrote:

I experience this issue in Redmine version 4.2.0 in the docker version. All PDF thumbnail images are broken, but not image preview thumbnails.

The problem that PDF thumbnail images are broken should be improved by rewriting policy.xml.
I think https://stackoverflow.com/questions/52861946/imagemagick-not-authorized-to-convert-pdf-to-an-image answer will be helpful.

#3 Updated by Scott Macpherson 6 months ago

Mizuki ISHIKAWA wrote:

The problem that PDF thumbnail images are broken should be improved by rewriting policy.xml.

This does indeed resolve the issue, but I believe the intention of this defect report was to point out the discrepancy between admin/info and what is actually available. It would be really nice if Redmine could alert administrators that PDF support is generally available, but PDF previews are not available.

#4 Updated by Mizuki ISHIKAWA 5 months ago

Scott Macpherson wrote:

Mizuki ISHIKAWA wrote:

The problem that PDF thumbnail images are broken should be improved by rewriting policy.xml.

This does indeed resolve the issue, but I believe the intention of this defect report was to point out the discrepancy between admin/info and what is actually available. It would be really nice if Redmine could alert administrators that PDF support is generally available, but PDF previews are not available.

You are right.

Also available in: Atom PDF