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...

PHP:
  1. $src = ImageCreateFromBMP($_FILES['upload_field']['tmp_name']);
  2. 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.

BMP Resize with PHP

Leave a Reply

A little about Vernon...

Hey there everybody, I’m Vernon. I’ve been a full-time freelance web designer since 2002 and can honestly say it’s been a great journey.

If you’re interested, take a look at my services site and let me help you with your project.