Apache, PHP 7.4
Простейший PHP скрипт
Код: Выделить всё
$ofile = 'test.pdf';
$imagick = new Imagick();
$imagick->readImage($ofile);
Перелопатил пол интернета, не могу понять, где копать...Fatal error: Uncaught ImagickException: Postscript delegate failed `[ghostscript library 9.25] -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72' '-sOutputFile=/tmp/magick-303566xnbJiA9fPoy%d' '-f/tmp/magick-30356180qyNIAa4J9' '-f/tmp/magick-30356sGPVSYPsvn5K'': ./base/gsicc_manage.cgsicc_open_search(): Could not find default_gray.icc | ./base/gsicc_manage.c
gsicc_init_iccmanager(): cannot find default icc profile ./base/gsicc_manage.c
gsicc_open_search(): Could not find default_rgb.icc | ./base/gsicc_manage.c
gsicc_set_device_profile(): cannot find device profile **** Unable to open the initial device, quitting. @ error/ghostscript-private.h/InvokeGhostscriptDelegate/171 in /sites/kman.kyiv.ua/1.php:8 Stack trace: #0 /sites/kman.kyiv.ua/1.php(8): Imagick->readimage('/home/kman/site...') #1 {main} thrown in /....../1.php on line 8
Помогите, пожалуйста.