You need to resize the image / x-ms-bmp file. But there is no imagecreatefrombmp function. Similar functions (imagecreatefromwbmp, imagecreatefromxpm, imagecreatefrompng, imagecreatefromjpeg) return an error (and this is understandable).

I think what is needed, in the case of the .bmp file, convert it to jpeg. And then everything is clear.

But how to convert it? What needs to be delivered \ included to the server (-re)?

http://php.net/manual/ru/function.exif-imagetype.php


Seem to have found (2 comments) http://ru2.php.net/manual/ru/function.imagecreatefromwbmp.php - I will analyze how it works ...

Skopipastil - does not work: (.

upd: 3 comments on page http://ru2.php.net/manual/ru/function.imagecreatefromwbmp.php WORKING, but it would be easier (and so that I could understand what and how it works)


link file validation check

  • Learn the structure of the BMP and understand. =) - And
  • More benefit will be if I think on the PLO. php.net/manual/ru/imagick.setformat.php is sad but I'm still half a step away from understanding OOP. - root_x Povierennyy
  • Stop. Do you want bmp to make from big to smaller? as with jpg and png and others? Or do you want to convert from bmp to jpg or png? - And

0