Welcome Guest ( Log In | Register)



2 Pages V  < 1 2  
Reply to this topicStart new topic
> Convert Gif & Png To Jpeg
galexcd
post Apr 30 2008, 03:52 PM
Post #11


Define:EVIL PROGRAMMER (ē'vəl prō'grăm'ər)- n. An organism that converts caffeine into evil software.
***********

Group: [HOSTED]
Posts: 1,018
Joined: 25-September 05
From: L.A.
Member No.: 12,251



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));
Go to the top of the page
 
+Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Convert Md5(6)


 



- Lo-Fi Version Time is now: 5th September 2008 - 02:29 PM