0
Answered

pdf thumbs not generated

mailbox 1 year ago updated 1 year ago 3

Installed latest FileRun on ubuntu 18.04 LXC container in Proxmox Virtual Environment. 

Everything seems to be running fine, however pdf thumbs are not generated. All other thumbs, including video thumbs (ffmpeg) are displayed correctly.

Imagemagick and ghostscript are installed. Convert path is correct. Running the make_thumbs.php script gives an OK for all files.

Any clues where to look for a solution?

Answer

+1
Answer
Answered

I found this on internet and it solved the issue:

In file /etc/ImageMagick-6/policy.xml (or /etc/ImageMagick/policy.xml)

  1. comment line

    <pre><code><!-- <policy domain="coder" rights="none" pattern="MVG" /> --></code></pre>
  2. change line

    <pre><code><policy domain="coder" rights="none" pattern="PDF" /></code></pre>

    to

    <policy domain="coder" rights="read|write" pattern="PDF" />
  3. add line

    <policy domain="coder" rights="read|write" pattern="LABEL" />

Try, from the command line:

convert file.pdf file.jpg

(Or "magick" in newer ImageMagick versions)

Does it produce a JPG image from the document?

no i get an error:

convert-im6.q16: not authorized `welkom.pdf' @ error/constitute.c/ReadImage/412.
convert-im6.q16: no images defined `file.jpg' @ error/convert.c/ConvertImageCommand/3258.

+1
Answer
Answered

I found this on internet and it solved the issue:

In file /etc/ImageMagick-6/policy.xml (or /etc/ImageMagick/policy.xml)

  1. comment line

    <pre><code><!-- <policy domain="coder" rights="none" pattern="MVG" /> --></code></pre>
  2. change line

    <pre><code><policy domain="coder" rights="none" pattern="PDF" /></code></pre>

    to

    <policy domain="coder" rights="read|write" pattern="PDF" />
  3. add line

    <policy domain="coder" rights="read|write" pattern="LABEL" />