mrjameer Posted March 25, 2008 Share Posted March 25, 2008 hi, i want to convert the bmp or gif image to jpg.how i can.any of your help will be surely appreciated.any links or tutorials help is great advantage to me thanks mrjameer Quote Link to comment https://forums.phpfreaks.com/topic/97795-how-to-convert-bmp-to-jpg/ Share on other sites More sharing options...
lordfrikk Posted March 25, 2008 Share Posted March 25, 2008 PHP (GD2, that is) can't handle BMP files, unfortunately. You can write your own BMP handling function, though (lol). Quote Link to comment https://forums.phpfreaks.com/topic/97795-how-to-convert-bmp-to-jpg/#findComment-500368 Share on other sites More sharing options...
BlueSkyIS Posted March 25, 2008 Share Posted March 25, 2008 GD does handle BMP. Quote Link to comment https://forums.phpfreaks.com/topic/97795-how-to-convert-bmp-to-jpg/#findComment-500372 Share on other sites More sharing options...
darkywarkey Posted May 25, 2009 Share Posted May 25, 2009 Can someone lead me to a good resource to learn how to write a conversion program? I want to properly convert BMP's to JPG's when they're uploaded. BMP's are almost always much larger files, and it would be far more efficient to use a JPG version. Any experts out there that can help?? ??? Quote Link to comment https://forums.phpfreaks.com/topic/97795-how-to-convert-bmp-to-jpg/#findComment-841633 Share on other sites More sharing options...
Axeia Posted May 25, 2009 Share Posted May 25, 2009 I'd disallow uploading of bmps to in the first place, don't think anyone would actually benefit from uploading a many megabytes big bmp. imagick seems to support nearly every image format btw. Quote Link to comment https://forums.phpfreaks.com/topic/97795-how-to-convert-bmp-to-jpg/#findComment-841640 Share on other sites More sharing options...
Kieran Menor Posted May 25, 2009 Share Posted May 25, 2009 Disallowing BMPs altogether seems like a better solution. BMP mostly only seen when saving images from MS Paint without changing the file type in Windows versions older than Vista. Just because of this, implementing BMP support seems like an awful waste of time to me. Besides, as you just said, BMPs are larger and as such, users will be annoyed by the longer upload times. It really isn't hard to save an image as a PNG instead of BMP, but if you're concerned, you could add a small guide on how to choose a different file type in MS Paint. Not exactly what you asked for, but an opinion nonetheless. Quote Link to comment https://forums.phpfreaks.com/topic/97795-how-to-convert-bmp-to-jpg/#findComment-841642 Share on other sites More sharing options...
darkywarkey Posted May 26, 2009 Share Posted May 26, 2009 I'm on a shared hosting environment, as such not sure how to set up imagick on it. tried before, didn't get much customer help - but I think you guys are right. I may just disallow it, I doubt anyone will be using it anyways. And I dont wanna kill the bandwidth of my site from 2megabyte image uploads for the 2 people that will use it. Thanks.. Quote Link to comment https://forums.phpfreaks.com/topic/97795-how-to-convert-bmp-to-jpg/#findComment-842072 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.