I'm designing a Image Hosting. But now users can upload only gif, jpg, png. They suggest me my site should allow upload gifs and bmp. But as I now PHP don't have image functions for these images. Please help me the way to do it! http://www.allimagefiles.com
php (rather, the GD graphics extention) supports bmp files just fine. list($width, $height, $type) = getimagesize("your_image_file"); if ($type == IMAGETYPE_WBMP || $TYPE == IMAGETYPE_BMP) echo 'you have a bitmap file'; PHP: Full list of IMAGETYPE_??? codes here: http://us3.php.net/manual/en/ref.image.php
If you mean animated gif by 'gifs', then you can use a class that was programmed for that. Search google for it.