The gd Library has been installed, but still prompts Calltoundefinedfunctionimagecreatefromjpeg ()

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.