Re: image problem

From: Date: Thu, 01 May 2003 22:50:58 +0000
Subject: Re: image problem
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-10777@lists.php.net to get a copy of this message
You have to send your http headers first. Put this before ImagePNG(): Header("Content-Type: image/png"); --Mike Kar ----- Original Message ----- From: "Michael Timinger" <me@timinger.net> To: <php-install@lists.php.net> Sent: Thursday, May 01, 2003 8:43 AM Subject: [PHP-INST] image problem > hi! > I have gd installed and enabled. > Trying the typical > ---------------------------------------------- > 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); > ------------------------------------------------- > I get the following string back: ?PNG  IHDR2dþ&ñPLTEÿÿÿé['˝£ > I checked out phpinfo(), realizing, that in Environment image/png isn't > mentioned. > What do I have to change in which config.file. Any ideas? > I am running WAMP, Bigapache. > Thanx! > > > > -- > Mit herzlichen Grüßen > Michael Timinger > > --------------------------------------- > consult@nt > An der Kaiserburg 21 > 40629 Düsseldorf > --------------------------------------- > fon: +49 700 TIMINGER (84646437) > fax: +49 12126 WILDDUCK (94533825) > mail: me@timinger.net > --------------------------------------- > "Whatever you can do or dream you can, begin it. > Boldness has genius, power and magic in it." > --------------------------------------- > > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.install (#10777) next »