【发布时间】:2012-09-07 21:35:32
【问题描述】:
我目前正在使用 CakePHP v2.2.1 和 MeioUpload 4.0 以及 phpThumb() 来尝试为这些图像生成图像上传和缩略图。如果我在没有 thumbsizes 属性的情况下设置我的$actAs = array(),那么一切都会很好地上传,但是当我添加以下内容时:
'thumbsizes' => array(
'small' => array('width' => 165, 'height' => 115),
'medium' => array('width' => 800, 'height' => 600)
),
要生成缩略图,我收到一条错误消息:
"E:/xampp/htdocs/site/vendors/phpthumb/img/posts/image-name.jpg" does not exist
我已经尝试了几种不同的方法来从网络上解决这个问题,但似乎没有任何效果。我是 cakephp 的新手,所以这可能是一个简单的修复,我只是没有连接点来找到解决方案。任何帮助将不胜感激。
【问题讨论】:
-
将答案放在此评论下方...
标签: php cakephp phpthumb cakephp-2.2 meio-upload