Re: Images
| From: | Ray Black III | Date: | Thu, 25 May 2000 12:43:49 +0000 |
| Subject: | Re: Images | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-540@lists.php.net to get a copy of this message | ||
Just to follow up on this, if you're using the latest and greatest versions
of everything, including the GD library, then you will not be able to create
gif images. Alas. GD hasn't supported the creation of .gif images since
version 1.6 because of copyright laws regarding .gif compression. It does
support .jpg, .png and others, so that's the route you'll have to go.
http://www.boutell.com/gd/
-r3-
----- Original Message -----
From: David Robley <huntsman@www.nisu.flinders.edu.au>
To: <durrani@comatindia.com>
Cc: <php-general@lists.php.net>
Sent: Thursday, May 25, 2000 2:26 AM
Subject: Re: [PHP-GENERAL] Images
> On 25 May, Durrani, Mohamed Ameenuddin wrote:
> > Hi...
> > I am using Linux server with Apache web server and MySQL, PHP4
> > The following code for creating Gif images is not working...
> > The screen is blank...
> > Any help...
> > Durrani
> > <?php
> > function LoadGif($imgname){
> > $im = @imagecreatefromgif($imgname); /* Attempt to open */
> > if ($im == "") { /* See if it failed */
> > $im = ImageCreate(150,30); /* Create a blank image */
> > $bgc = ImageColorAllocate($im,255,255,255);
> > $tc = ImageColorAllocate($im,0,0,0);
> > ImageFilledRectangle($im,0,0,150,30,$bgc);
> > ImageString($im,1,5,5,"Error loading $imgname",$tc); /* Output an
> > errmsg */
> > }
> > return $im;
> > }
> > $url = "http://202.54.39.194/images/logo_n.gif";
> > LoadGif($url);
> >
> > ?>
>
> There doesn't appear to be any code there to display the image?
>
> Cheers
> --
> David Robley | WEBMASTER & Mail List Admin
> RESEARCH CENTRE FOR INJURY STUDIES | c*Ú“‰ß ØÑ-¶
> ÏH~Chttp://www.nisu.flinders.edu.au/
> AusEinet | http://auseinet.flinders.edu.au/e«Ôt
> ü½ûìŠX®Õûþ
> Flinders University, ADELAIDE, SOUTH AUSTRALIA
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net