Defect #34397
closedPDF thumbnail to PNG failing on ruby 2.5
0%
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'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
Updated by Go MAEDA about 4 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
Updated by Zee Prime about 4 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!!!!!
Updated by Holger Just about 4 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.