docker
docker copied to clipboard
PDF preview generation
I was using this full example to set up Nextcloud with preview generation enabled. However, I noticed that PDF previews weren't working. Adding ghostscript to the list of installed packages made it work for me so I was wondering if you forgot to include this? If yes, I'd be happy to submit a PR that adds this package to the full examples.
same consideration applies for me
Related:
- https://stackoverflow.com/questions/52998331/imagemagick-security-policy-pdf-blocking-conversion
- https://help.nextcloud.com/t/cant-see-pdf-thumbnails-in-new-grid-view-but-works-in-the-demo-instance/43759
- https://help.nextcloud.com/t/pdf-previews-are-not-generated/51942
Sorry, I don't have an official answer/solution/workaround. I edited /etc/ImageMagick-6/policy.xml
but it doesn't work. Maybe this can't be changed at runtime, e.g. some PHP process or a shared library is already loaded and won't be reloaded until the container is destroyed and re-created. Or maybe the Apache child processes just need to die and re-spawn? Some previews just started showing up. I'm using the image tagged nextcloud:24.0.1-apache
.
See #1869