So, I am getting the following error whilst trying to upload images on my Heroku site (PHP).
Fatal error: Call to undefined function: imagejpeg()
It refers to the following line in my AmazonS3Handler.php file.
//build the jpeg
imagejpeg($destinationImage);
Any ideas on how I could fix this?
I had GD
lib installed and got the same error. The problem was in compiling without jpeg
support. Here what you should do to make things work.
libjpeg
apt-get install libjpeg62-turbo-dev
PHP
with jpeg
support./configure \
--with-gd
--with-jpeg-dir=/usr/lib64
# other options
PHP
make clean
make
make install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With