Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
因此,尝试在我的 Heroku 网站 (PHP) 上上传图片时出现以下错误。
Fatal error: Call to undefined function: imagejpeg()
它指的是我的 AmazonS3Handler.php 文件中的以下行。
//build the jpeg imagejpeg($destinationImage);
关于如何解决这个问题的任何想法?
我GD安装了 lib 并得到了同样的错误。问题在于没有jpeg支持的编译。在这里,您应该做些什么才能使事情正常进行。
GD
jpeg
libjpeg
apt-get install libjpeg62-turbo-dev
PHP
./configure \ --with-gd --with-jpeg-dir=/usr/lib64 # other options
make clean make make install