note 2265 deleted from Image functions by sniper

From: Date: Thu, 21 Sep 2000 13:58:55 +0000
Subject: note 2265 deleted from Image functions by sniper
Groups: php.notes 
Request: Send a blank email to php-notes+get-5285@lists.php.net to get a copy of this message
For anyone who wants to use PNG with GD with PHP. I got it to work by modifying the PHP source (was actually easy).<br><br> Here's what I did:<br> 1. Compile GD with PNG and stuff<br> 2. Edit this file: ./php-4.0b2/ext/gd/gd.c<br> Change the gdImageGif and gdImageCreateFromGif functions to gdImagePng and gdImageCreateFromPng<br> 3. Under apache: in ./apache_1.3.9/src/Makefile add: -lpng to the LIBS1 variable<br><br> I believe this is all I did (besides changing a couple things to make it compile under OpenBSD :(<br><br> Just remember to ./configure things before changing the Makefiles

« previous php.notes (#5285) next »