note 43196 rejected from function.getimagesize by nlopess
| From: | nlopess@php.net | Date: | Sun, 13 Jun 2004 15:52:24 +0000 |
| Subject: | note 43196 rejected from function.getimagesize by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-71018@lists.php.net to get a copy of this message | ||
Note Submitter: bthivent@aol.com
----
Wich type correspond for the number 4 ?
I've just made this array() :D
<?
$types = array(
'1' => 'GIF',
'2' => 'JPG',
'3' => 'PNG',
'4' => '??',
'5' => 'PSD',
'6' => 'BMP',
'7' => 'TIFF',
'8' => 'TIFF',
'9' => 'JPC',
'10' => 'JP2',
'11' => 'JPX',
'12' => 'JPB',
'13' => 'SWC',
'14' => 'IFF');
$image = getimagesize("image.gif");
list($width, $height, $type, $size) = $image;
echo 'Type : ' . $types[$type];
?>
It miss number 4 !