homepage Welcome to WebmasterWorld Guest from 54.196.63.93
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
easy way to convert image bmp file to jpeg?
blaketar

10+ Year Member



 
Msg#: 3631607 posted 4:58 pm on Apr 21, 2008 (gmt 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!

 

IanKelley

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3631607 posted 11:01 pm on Apr 21, 2008 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved