I use imagecreatefromjpeg, imagecreatefromgif, and imagecreatefrompng functions to create thumbnails of image/jpeg, image/gif, and image/png mimes.
I would like also to create thumbnails of .BMP files.
I checked one file and found out that its mime is image/x-ms-bmp.
However, I cannot find an appropriate imagecreatefrom... function.
Please suggest.
PHP does not have built in image functions for BMP.
There have been a few attempts to create functions to do this.
You can find a robust and well documented version in this comment in the PHP documentation: http://www.php.net/manual/en/function.imagecreatefromwbmp.php#86214
Here is the function from that comment without the excellent documentation which makes much longer but much more readable: