Valhalla Legends Forums Archive | Web Development | ImageGif() function

AuthorMessageTime
CrAz3D
[code]<?php
if (($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);
?> [/code]

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.
May 11, 2004, 2:49 AM
j0k3r
http://ca2.php.net/manual/en/function.imagecreatefromgif.php

See if that helps any.
May 11, 2004, 10:33 AM

Search