【发布时间】:2014-06-12 02:39:32
【问题描述】:
我已经在我的 MAMP 和 Lamp 站点上运行以下 imagerotate 代码很长时间了(Lamp 在 AWS EC2 微实例上),没有任何问题。
...
case 6 :
// 90 rotate right
$destinationImage = imagerotate($destinationImage, -90, -1);
$this -> log -> lwrite('90 rotate right');
$this -> log -> lwrite(var_export($destinationImage, true));
break;
....
return imagejpeg($destinationImage, $destination, 100);
我刚刚迁移到 elastic beanstalk,并使用 eb tools 和 eb aws.push 从 git 进行部署。
自从将此推送到 ELB 后,我在日志中看到以下错误
PHP Warning: imagejpeg() expects parameter 1 to be resource, boolean given in /var/app/current/util/ImageUtil.class.php on line 221
这告诉我 imagerotate 由于某种原因无法正常工作并返回 false。我的正常日志记录抽出:
[26/Apr/2014:09:34:15] (image_upload) [2-f9skfpbrbdi36kdvr42gh3tt71] : 90 rotate right
[26/Apr/2014:09:34:15] (image_upload) [2-f9skfpbrbdi36kdvr42gh3tt71] : false
这是弹性豆茎的已知问题吗?有什么建议吗?
【问题讨论】:
标签: php linux amazon-web-services amazon-elastic-beanstalk