note 53672 added to function.imagecreatefromgif
| From: | ingrid at osu1 dot php dot net | Date: | Wed, 08 Jun 2005 21:17:05 +0000 |
| Subject: | note 53672 added to function.imagecreatefromgif | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90139@lists.php.net to get a copy of this message | ||
I tried to use a GIF animation in this script:
$TextFile = "teller.txt";
$Count = trim(file_get_contents($TextFile));
$FP = fopen($TextFile, "r");
$Count=fgets($FP, 4096);
fclose ($FP);
settype($Count, "integer");
$Count++;
if ($FP = fopen ($TextFile, "w")){
fwrite ($FP, $Count);
fclose ($FP);
}
$image = "blad.gif";
$im = imagecreatefromgif($image);
$red = ImageColorAllocate ($im, 255, 0, 0);
$blue = ImageColorAllocate ($im, 0, 0, 255);
$hit = "$Count";
$ip = $_SERVER["REMOTE_ADDR"];
ImageString($im, 5, 10, 1, "eigen tekst", $blue);
ImageString($im, 3, 1, 130, " IP nummer $ip", $red);
ImageString($im, 4, 1, 150, " is bezoeker $hit ", $red);
header("Content-Type: image/gif");
Imagegif($im,'',100);
ImageDestroy ($im);
It worked, but the GIF animation does no longer move after being transformed into this PHP image.
Is animation not supported by PHP ?
----
Manual Page -- http://www.php.net/manual/en/function.imagecreatefromgif.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53672
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53672&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53672&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53672&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53672&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53672&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53672&report=yes
Search -- http://master.php.net/manage/user-notes.php