Re: image creation to file

From: Date: Thu, 07 Mar 2002 02:57:45 +0000
Subject: Re: image creation to file
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-87564@lists.php.net to get a copy of this message
An alternative is to put the code into makeImage.php and then call it directly from your HTML page with your <IMG SRC="makeImage.php"> whenever you want that image displayed. Jim..... "Tom Rogers" <trogers@kwikin.com> wrote in message news:5.1.0.14.0.20020307122157.00aeef18@crux.kwikin.com... > Hi > use ImagePNG($im,"test.png") > > Tom > > At 12:17 PM 7/03/2002, Craig Westerman wrote: > >The following creates a red rectangle png image > > > ><? > >Header("Content-Type: image/png"); > >$im = ImageCreate(500, 75); > >$red = ImageColorAllocate($im, 255, 0, 0); > >ImageFill($im, 100, 100, $red); > >ImagePNG($im); > >?> > > > > > >This sends created image to browser > >ImagePNG($im); > > > > > >How would I save this image as test.png to file to be hard coded in static > >web pages? > > > >Thanks > > > >Craig ><> > >westerman@chanuteks.com > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#87564) next »