Welcome to WebmasterWorld Guest from 54.196.231.129

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)

Full Member

10+ Year Member

joined:June 24, 2004
posts: 202
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 4, 2001
posts: 1262
votes: 12


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');