note 15050 added to function.imagegif.php

From: Date: Sat, 25 Aug 2001 20:31:08 +0000
Subject: note 15050 added to function.imagegif.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-17138@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. http://www.php.net/manual/en/function.imagegif.php

« previous php.notes (#17138) next »