【发布时间】:2014-08-18 18:27:24
【问题描述】:
我正在为一些简单的事情苦苦挣扎,比如在 ImageMagick 中读取图像,但不知道为什么
网站托管在linux PHP 5.4版下
上传图片后,我这样做是为了打印它。
$image = $_FILES['file']['name'];
$imagen = new Imagick($image);
$imagen->thumbnailImage(100, 0);
echo $image;
(pub1.gif) 是要上传的原始图片的名称
但我收到以下错误,不知道如何处理。
致命错误:带有消息的未捕获异常“ImagickException” '无法打开图像`pub1.gif':没有这样的文件或目录@ blob.c/OpenBlob/2480' 在 /home/content/38/10882038/html/carsventa/accountpass/post/publish-advertisement.php:74Stack 跟踪:#0 /home/content/38/10882038/html/carsventa/accountpass/post/publish-advertisement.php(74): imagick->__construct('pub1.gif')#1 {main} 抛出 /home/content/38/10882038/html/carsventa/accountpass/post/publish-advertisement.php 第 74 行
【问题讨论】:
标签: php imagemagick