I know this is an old topic but nobody has given the easiest answer yet to this simple question. I believe GD library has some php functions for you to use to do this. Something like this should work:


CODE
$url="/images/convert.gif";  //url of image you want to convert (you will have to make an image upload script if you want to get these from user's harddrives)
$from="gif";  //convert from:  gif | png | jpeg
$to="png";  //convert to:  gif | png | jpeg
//------------------------------------------------------
header("Content-Type: image/".$to);
@{"image".$to}({"imagecreatefrom".$from}($url));

Reply