Valhalla Legends Archive

Programming => Web Development => Topic started by: CrAz3D on May 10, 2004, 09:49 PM

Title: ImageGif() function
Post by: CrAz3D on May 10, 2004, 09:49 PM
<?phpif (($img = ImageCreateFromGif("images/logo.gif")) == ""){    echo "Error - Could not open image. Arghh!";exit;}$red = ImageColorAllocate($img, 255, 0, 0);ImageString($img, 3, 0, 0, $text, $red);header("Content-type: image/gif");ImageGif($img);?>


This code works for jpeg images, but it does not for gif images.  The error I receive is:Call to undefined function:  imagegif()

From what I can see everything looks correct...any help is appreciated.
Title: Re:ImageGif() function
Post by: j0k3r on May 11, 2004, 05:33 AM
http://ca2.php.net/manual/en/function.imagecreatefromgif.php

See if that helps any.