所以,当我尝试在我的Heroku站点(PHP)上传图片时,我得到了以下错误。
Fatal error: Call to undefined function: imagejpeg() 它引用了我的AmazonS3Handler.php文件中的以下行。
//build the jpeg
imagejpeg($destinationImage);你有什么办法让我解决这个问题吗?
发布于 2016-01-13 18:52:11
我安装了GD库,得到了同样的错误。问题是在没有jpeg支持的情况下进行编译。下面是你应该怎么做才能让事情变得正常。
1.安装libjpeg
apt-get install libjpeg62-turbo-dev2.配置支持jpeg的PHP
./configure \
--with-gd
--with-jpeg-dir=/usr/lib64
# other options3.构建PHP
make clean
make
make installhttps://stackoverflow.com/questions/19028793
复制相似问题