PHP and GD
| From: | AVZverev at sng dot tnk dot ru | Date: | Sat, 16 Dec 2000 11:28:14 +0000 |
| Subject: | PHP and GD | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-1234@lists.php.net to get a copy of this message | ||
Hello
Have some problem with GD.
os: FreeBSD 4.2-release
php version: Version 4.0.3pl1
gd version: 1.8.3 (from packages)
jpeg, png, freestype installed with gd.
php configure:
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mod_charset \
--enable-force-cgi-redirect --with-config-file-path=/usr/local/etc \
--enable-calendar --with-gettext --with-mysql --enable-sockets \
--enable-memory-limit --enable-track-vars --with-gd --with-ttf
compilation ok, installation ok. then trying to use some simple code,
like a example on doc for function ImageCreate:
file a.php:
<?
header ("Content-type: image/png");
$im = @ImageCreate (50, 100)
or die ("Cannot Initialize new GD image stream");
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 233, 14, 91);
ImageString ($im, 1, 5, 5, "A Simple Text String", $text_color);
ImagePng ($im);
?>
and there in an error:
<br>
<b>Warning</b>: ImagePng: No PNG support in this PHP build in
<b>/usr/home/tigra/www/a.php</b> on line <b>8</b><br>
what wrong???
---
With best regards Alexandr V. Zverev
mailto: AVZverev@sng.tnk.ru