[php] Image functions (png ondersteuning)

Pagina: 1
Acties:

  • Reigner_Mortem
  • Registratie: Maart 2001
  • Laatst online: 01-04-2022
Probleem: ik krijg het niet voor elkaar om gebruik te maken van png image functies
bv. functie imagecreatefrompng() resulteerd in:
Fatal error: Call to undefined function: imagecreatefrompng()
JPEG onsteuning werkt wel.

stuk uit de php info
gd
GD Support enabled
GD Version 1.6.2 or higher
JPG Support enabled
WBMP Support enabled
php configuratie
./configure \
--prefix=/mnt/hd/programs/web/php4 \
--with-mysql=/mnt/hd/programs/web/mysql \
--with-gd=/leech/linux-install/gd-2.0.1 \
--with-freetype-dir=/usr \
--enable-gd-native-ttf \
--enable-gd-imgstrttf \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-zlib \
gebruikte software
Slackware 8.1
Apache 1.3.26
PHP 4.2.1
gd-2.0.1
Libpng 1.2.3
Zlib 1.1.4
Installatie php met gd
http://www.php.net/~rasmus/gd.html

  • TheRebell
  • Registratie: Oktober 2000
  • Laatst online: 01:07
PHP info:
code:
1
2
3
4
5
6
7
GD Support enabled 
GD Version 2.0 or higher 
FreeType Support enabled 
FreeType Linkage with freetype 
JPG Support enabled 
PNG Support enabled
WBMP Support enabled

oftewel, gewoon PNG support installen :)

  • PieterJ
  • Registratie: Juli 2000
  • Laatst online: 01-09 16:04
Op maandag 08 juli 2002 20:24 schreef TheRebell het volgende:oftewel, gewoon PNG support installen :)
Dat zit er vanaf 1.6.1 toch standaard in :?

Reigner_Mortem je hebt in ieder geval de gd v1.6.2 geinstalleerd en niet versie 2.0.1
Anders zou je dat zien in je php_info();

  • Reigner_Mortem
  • Registratie: Maart 2001
  • Laatst online: 01-04-2022
Wou het toch nog vandaag aan de praat krijgen .. en dus nog 1 keer proberen ..

... en uhm ..
[schaam-modus]
Moet natuurlijk ook de libphp4.so opnieuw laten compilen

php source dir
code:
1
2
./configure
 --with-apxs=/mnt/hd/programs/web/apache/bin/apxs \

[/schaam modus]


iig bedankt voor de hulp :)