Project

General

Profile

Actions

Defect #34397

closed

PDF thumbnail to PNG failing on ruby 2.5

Added by Zee Prime over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Attachments
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

We have Redmine 4.1.1 hosted on an ubuntu server but whenever we attach PDFs, the thumbnails show up as 404 broken links despite it appearing that it is set up correctly:

All image attachments do show thumbnails correctly.

When I run "rake test" on the server, I consistently get 2 failing unit tests related to this:
  • AttachmentTest#test_thumbnail_should_generate_the_thumbnail
  • AttachmentsControllerTest#test_thumbnail_for_pdf_should_be_png
I thought it was just the version of code I'm running or my environment, so I forked the github mirror of Redmine and tried running the unit tests using github actions to ensure a consistent build environment. However, this is also consistently failing with the same 2 errors.

I've checked in my Bundle.lock file but otherwise it is the same as the version that is clearly building successfully in Jenkins according to https://www.redmine.org/builds/ - is there a server-level package that I need to apt-install or a gem I'm missing that's not defined in the Gemfile?

Is the "check" that the information page does to determine whether pdf-to-thumbnail support is enabled broken? I've confirmed that "gs" is installed on our server and working correctly.

Thank you,
Michael


Files

info.png (73.2 KB) info.png Zee Prime, 2020-12-04 20:52
Actions #1

Updated by Go MAEDA over 3 years ago

I found the following page. Maybe ImageMagick's policy.yml in your environment does not allow converting PDF files.

python - ImageMagick not authorized to convert PDF to an image - Stack Overflow

Actions #2

Updated by Zee Prime over 3 years ago

  • Status changed from New to Resolved

Go MAEDA wrote:

I found the following page. Maybe ImageMagick's policy.yml in your environment does not allow converting PDF files.

python - ImageMagick not authorized to convert PDF to an image - Stack Overflow

Yep - that was it - THANK YOU!!!!!

Actions #3

Updated by Holger Just over 3 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Invalid

Thank you for the feedback. I'm closing this issue as it is not a defect in Redmine.

Actions

Also available in: Atom PDF