A community in which webmasters can ask for help with topics such as PHP coding , MySQL , IT jobs, web design, IT security.
Current location:homephp forumphp talk in 2009 yearConvert jpg image to gif, png & bmp format using PHP - page 1
User InfoPosts
Convert jpg image to gif, png & bmp format using PHP#1
How can I convert a single jpg image into 3 different image format gif , png and bmp using PHP?

Pls help

posted date: 2009-04-16 03:48:00


Re: Convert jpg image to gif, png & bmp format using PHP#2
I had made out the solution of this problem. click to view my topic...

hope that hepls.

posted date: 2009-04-16 03:48:01


Re: Convert jpg image to gif, png & bmp format using PHP#3
Use libGD — http://www.php.net/manual/en/book.image.php

posted date: 2009-04-16 03:50:00


Re: Convert jpg image to gif, png & bmp format using PHP#4
But its a huge library file, Could u pls help me for a perticular one? which code i have to use?

posted date: 2009-04-16 04:02:00


Re: Convert jpg image to gif, png & bmp format using PHP#5
You first create an image object out of your file with imagecreatefromjpeg(). You then dump that object into different formats (using imagegif() for example):$imageObject = imagecreatefromjpeg($imageFile);imagegif($imageObject, $imageFile . (.gif();imagepng($imageObject, $imageFile . (.png();imagewbmp($imageObject, $imageFile . (.bmp();

posted date: 2009-04-16 04:09:00


Re: Convert jpg image to gif, png & bmp format using PHP#6
thanks bro.its working properly.

posted date: 2009-04-17 03:48:00


Re: Convert jpg image to gif, png & bmp format using PHP#7
Note that WBMP is not the BMP as you might know it: en.wikipedia.org/wiki/Wbmp

posted date: 2009-05-17 09:23:00


Re: Convert jpg image to gif, png & bmp format using PHP#8
great answer, exactly what i was lookking for too

posted date: 2009-10-31 07:02:00


Re: Convert jpg image to gif, png & bmp format using PHP#9
Surely you don't want to convert anything to BMP on the web. Non-animated GIF is a waste of bandwidth as well.

posted date: 2011-12-18 07:50:00


Re: Convert jpg image to gif, png & bmp format using PHP#10
How do I get a bmp? Since wbmp is not bmp, so image viewer in ubuntu says bogus data.

posted date: 2012-01-06 01:19:00


Re: Convert jpg image to gif, png & bmp format using PHP#11
I(ve set up a new opensource project on Github that allows reading and saving of BMP files (actual BMP files, not wbmp), and other file formats, in PHP. It(s nice and easy to use.The project is called PHP Image Magician.

posted date: 2012-07-18 20:31:00


select page: « 1 »
Copyright ©2008-2017 www.momige.com, all rights reserved.