I have also had some weird problems with PNGs and Netscape.  Actually, most
appear fine, but PNGs that specify a transparent color do weird things.

As well, I have have seen problems with Netscape not loading all images that
are created at runtime.  Have not tracked this down, but it appears to be a
Netscape only problem.



// Mike Eynon
// www.MikeEynon.com
// 1366 Bulb Ave.
// Santa Cruz, CA  95062
// 831.588.2388

-----Original Message-----
From: Narvaez, Teresa [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 5:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Can't display PNG images


Hello,
Background info:
----------------
I'm running
    o PHP 4.1.1 on a linux server kernel(2.2.16).
    o Using Netscape Communicator 4.75
    o Compiled and installed the gd(1.8.4) library

Problem(2 problems):
--------------------
1.- The following code won't display an image(I get an icon of some type of
piece of paper).
<?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);
?>

2.- The configure Command from phpinfo() is different than what I actually
typed at the
    command line.  Also, phpinfo() area for GD does not show PNG or JPEG
support.  why?
       from phpinfo()
       --------------
         './configure' '--with-mysql' '--with-apxs=/var/apache/bin/apxs'
         '--with-gd=/home/builder/downloads/untarred/gd-1.8.4'
'--enable-sockets'
         '--enable-calendar' '--enable-ftp' '--enable-trans-sid'
       What I typed at the command line:
       ---------------------------------
         ./configure --with-mysql --with-apxs=/var/apache/bin/apxs
          --with-gd=/home/builder/downloads/untarred/gd-1.8.4
          --with-png-dir=/usr/lib --enable-gd-native-ttf --with-ttf
          --with-jpeg-dir=/home/builder/downloads/untarred/jpeg-6b
          --with-t1lib=/home/builder/downloads/untarred/t1lib-1.3.1
          --enable-sockets --with-zlib-dir --with-xpm-dir --enable-calendar
          --enable-ftp --enable-trans-sid

OUTPUT from phpinfo()
-----------------------
GD Support            enabled
GD Version            1.6.2 or higher
WBMP Support          enabled

I would really appretiate any ideas you could give me.
Thanks in advance! -Teresa





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to