Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

imagepng() ...call to undefine function

Status
Not open for further replies.

lexart

Programmer
Apr 22, 2002
5
0
0
CZ
I compiled PHP4.2.1 --with-gd=/home/admin/2/gd-1.8.4 , but phpinfo() says
---------------------------------
gd
GD Support enabled
GD Version 1.6.2 or higher
WBMP Support enabled
----------------------------------
but i need PNG and JPEG. What do i wrong ??
please
 
To read and write jpegs, you need to install the jpeg library and compile jpeg support into GD. Then compile PHP to use GD.

The same for png.

See

______________________________________________________________________
Did you know?
The quality of our answers is directly proportional to the number of stars you vote?
 
Or ... you can go and compile the beta 2.0 version of GDlib, which comes with a leetish jpeg, png and bmp support. however ... the Gif format is traded out and not supported at all.

I've been using 2.0 for quite a while, only bug I've noticed is an alpha channel bug when merging a PNG image with a JPEG image (to stick a logo on the image ...).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top