Resize a BMP file with PHP and GD
March 27th, 2007
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
So I recently ran into an issue while trying to resize a BMP file with PHP. Fortunately, I came across this user created function in the imagecreate() section of the PHP website that made it easy as pie.
All you need to do is take the function there and do something like...
-
$src = ImageCreateFromBMP($_FILES['upload_field']['tmp_name']);
-
imagejpeg($src, 'test.jpg');
Of course that's a pretty bland and simple example, but you should get the point. If not, post a comment and I'd be glad to update it.

