How can I convert a single jpg image into 3 different image format gif , png and bmp using PHP?
Pls help
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');
2.1m questions
2.1m answers
60 comments
57.0k users