Article

  • 6 years

    1 year

    YetiShare / Core

    4345

Document Viewer PDF Thumbnails - Install ImageMagick & Ghostscript

To enable PDF thumbnails within the document viewer plugin, some additional server software is required.

Note: The following should be run as the root SSH user.

RedHat/CentOS and Derivatives:

yum install ghostscript
yum install ImageMagick ImageMagick-devel
yum install gcc php-devel php-pear
pecl install imagick


Debian/Ubuntu:

sudo apt-get install ghostscript
sudo apt-get install imagemagick
sudo apt-get install php-imagick


IMPORTANT: After completing the steps above you may need to add the following to the end of your php.ini file:

extension=imagick.so

After all the above, ensure you've restarted Apache, PHP-FPM and/or Nginx.

 

Troubleshooting:

After the above, PDF thumbnails not rendering and error logs show:

Uncaught ImagickException: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408
Fix:

- https://support.mfscripts.com/public/kb_view/84/