php imagick抛出“未捕获的ImagickException:无法打开文件”

时间:2021-04-11 16:54:44

标签: php imagick

我在 Linux 上运行 PHP7.3.27 并运行该行

$fn = '/var/www/vhosts/.........../myfile.png';
$im = new imagick($fn);

(myfile.png 存在的地方,如果直接从浏览器运行可以查看) 但我收到以下错误:

Uncaught ImagickException: unable to open file `/tmp/magick-5465d-r7LT2tZ8Ip': No such file or directory @ error/constitute.c/ReadImage/604 in ....

当我针对另一个测试文件运行时,它工作正常。 导致此问题的 myfile.png 是什么?

0 个答案:

没有答案
相关问题