I was trying to resize some jpeg file in a php script and got this error:
Fatal error: Call to undefined function imagecreatefromjpeg()
I have recompiled the PHP by adding the following parameters to the ./configure script: --with-gd --with-zlib --with-jpeg-dir and everything worked after.
Of course I had to fix some dependencies first, but it was easy under Debian using apt-get, I remember that I had to do something similar a few years ago under an old Red Hat and it was really painful to fix all those GD requirements.
No comments:
Post a Comment