Welcome to WebmasterWorld Guest from 54.204.100.232

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

easy way to convert image bmp file to jpeg?

   
4:58 pm on Apr 21, 2008 (gmt 0)

10+ Year Member



Is there an easy way to convert an uploaded file from a bmp to a jpeg file? I found a nice solution for gif to jpeg conversion but have not been able to successfully get a bmp to jpg working properly.

Any help greatly appreciated, am also struggling with a png to jpeg convert solution.

Thanks All!

11:01 pm on Apr 21, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



www.php.net/imagecreate [php.net]

Check the user submitted comments, there is a function there to convert BMP to JPEG. After that you would:

imagejpeg($image,'FinalImage.jpg');