ImageMagick: Fix PolicyMap

How to fix the error message „ImagickException: not authorized“:

ImagickException: not authorized `/tmp/magick-............' @ error/constitute.c/ReadImage/412
vi /etc/ImageMagick-6/policy.xml

Change rights="none" to rights="read|write" for PS, EPI, PDF and XPS

  <policy domain="coder" rights="read|write" pattern="PS" />
  <policy domain="coder" rights="read|write" pattern="EPI" />
  <policy domain="coder" rights="read|write" pattern="PDF" />
  <policy domain="coder" rights="read|write" pattern="XPS" />

Restart services

service apache2 restart && service php7.2-fpm restart