Project

General

Profile

Actions

Defect #34896

open

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

Added by Mizuki ISHIKAWA about 3 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Administration
Target version:
-
Start date:
Due date:
% Done:

0%

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


Files

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

Updated by Plastik Schnitzer almost 3 years 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
Actions #2

Updated by Mizuki ISHIKAWA almost 3 years 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.

Actions #3

Updated by Scott Macpherson almost 3 years 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.

Actions #4

Updated by Mizuki ISHIKAWA almost 3 years 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.

Actions

Also available in: Atom PDF