docker icon indicating copy to clipboard operation
docker copied to clipboard

PDF preview generation

Open peterwvj opened this issue 4 years ago • 2 comments

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.

peterwvj avatar Mar 06 '20 16:03 peterwvj

same consideration applies for me

el3ctrician avatar Apr 09 '20 10:04 el3ctrician

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.

meonkeys avatar Jun 12 '22 20:06 meonkeys

See #1869

meonkeys avatar Nov 28 '22 21:11 meonkeys