php gd library is not supported because the jpeg library path was not declared before compiling the gd library and during configuration. The solution is: first declare the jpeg library path; then re-"make&make install"; finally restart php-fpm. Can.

The operating environment of this article: windows7 system, PHP5 version, DELL G3 computer
php gd library does not support jpeg solution
I won’t go into details here about how I encountered this problem. If you have indeed installed the gd library, but find that it cannot support images in jpeg format, you can find the answer below.
The reason is that before compiling the gd library, the jpeg library path was not declared during configuration.
The solution is as follows:
32-bit system:
./configure –with-php-config=/usr/local/php5/bin/php-config –with-jpeg-dir=/usr/lib
64-bit system
./configure –with-php-config=/usr/local/php5/bin/php-config –with-jpeg-dir=/usr/lib64
Recommended learning: "PHP Video Tutorial 》
After re-make&make install, restart php-fpm.
The above is the detailed content of What should I do if the php gd library does not support jpg?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Atom editor mac version download
The most popular open source editor

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.






