note 15050 deleted from function.imagegif by sander
| From: | sander@php.net | Date: | Sat, 04 May 2002 16:22:07 +0000 |
| Subject: | note 15050 deleted from function.imagegif by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-30186@lists.php.net to get a copy of this message | ||
Looking for your image Gif format ?
function GetImageformat ($path)
{
/*
Return the format of the specified Gif image
string getimageformat (string filename);
The GetImageFormat function will determine the format of a GIF image.
Returns GIF87a, GIF89a or false on error.
Note: This function does not require the GD image library.
*/
if ($fp=@fopen($path,'r'))
{
fseek($fp,3);
return fgets($fp,4);
}
return false;
}
see also my note about ImageColorTransparent, to get the transparent color index.