The gd Library is installed, but the system still prompts that Calltoundefinedfunctionimagecreatefromjpeg () has installed the gd Library. phpinfo () can be seen, but still prompts Call to undefined function imagecreatefromjpeg ()
What is the situation?
Reply to discussion (solution)
What is your PHP version? Phpinfo?
Php5.4.17
The gd information is as follows:
GD Support enabled
GD Version bundled (2.0.34 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
LibPNG Version 1.2.10
WBMP Support enabled
XBM Support enabled
Directive Local Value Master Value
Gd.jpeg _ ignore_warning 0 0
After reading the manual, one of them is written as follows: Note: JPEG support is only available when PHP is compiled with a GD-1.8 or a later version.
Is it because php is not compiled with gd when the environment is configured? Because the environment is not my configuration, it seems that the configuration is not very proficient...
If jpeg is supported, JPG Support enabled is displayed.
It is estimated that it has not been installed.
If jpeg is supported, JPG Support enabled is displayed.
It is estimated that it has not been installed.
Isn't gd compiled with php as mentioned in the php manual? Or other possibilities?
To activate jpeg-6b support, add -- with-jpeg-dir = DIR.
To activate jpeg-6b support, add -- with-jpeg-dir = DIR.
Xu is really an expert.
You mean you can only re-compile php?
Yes, recompile