Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.pdf thumbnails do not work in redmine 4.1.1; .txt icons do not work #3

Open
GaryAitken opened this issue Apr 2, 2021 · 1 comment

Comments

@GaryAitken
Copy link

redmine 4.1.1, ubuntu 18.04
pdf -- thumbnails don't seem to work, but icon does show up if switched on instead.
txt -- neither thumbnails nor icons work
image

@hermannkm
Copy link

hermannkm commented Aug 8, 2021

Same problem for pdf on 4.2.2, Ubuntu 20.04, ImageMagick 6.9.10-23 Q16 x86_64 20190101.
Thumbnails are empty after some short pause -- something seems to happen but no result is produced.
Log shows

Creating thumbnail failed (pid 235720 exit 1):
Command: 'convert' '/var/www/redmine-4.2/files/2021/08/210808080826_dfu_SR8200N.pdf[0]' -thumbnail '200x200>' 'png:/var/www/redmine-4.2/tmp/thumbnails/94db495653ada2aa56003cb489e0425a8b

After some searching I found a solution (not sure about security implications) e.g. here: https://askubuntu.com/questions/1127260/imagemagick-convert-not-allowed
and solved the problem by commenting line 94 in /etc/ImageMagick-6/policy.xml:
<!-- <policy domain="coder" rights="none" pattern="PDF" /> -->
Nice thumbnails instantly for PDFs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants