Ask a Question related to PHP Development, Design and Development.
-
Daniel Ward #1
Re: [PHP] Convert GIF to JPG with or without GD
The following code works on Win2K, Apache 1.3.27, PHP 4.3.2
$gif = imagecreatefromgif('image.gif');
$w = imagesx($gif);
$h = imagesy($gif);
$jpg = imagecreate($w, $h);
// or $jpg = imagecreatetruecolor($w, $h); but colors are off
imagecopy($pic, $im, 0, 0, 0, 0, $w, $h);
// or imagecopyresampled($jpg, $gif, 0, 0, 0, 0, $w, $h, $w, $h);
imagejpeg($jpg); // also works with imagepng()
imagedestroy($gif);
imagedestroy($jpg);
exit;
don't have 4.3 on my linux box yet so I haven't tested it there
Daniel Ward Guest
-
Convert FLV to wav or MP3
we have 2 questions: We want to buy flash communication server professionel but we need some technical answers : 1) is it possible to convert... -
best way to convert 4c pdf to RGB?
What is the easiest, fastest, best way to convert a batch of pdfx1a cmyk pdf files with text and graphic to all rgb text and graphics? alan -
asp convert php
Is their good freely downloadable tool to convert asp to php? Is their a tool to convert asp to php upto 100 ? ... -
Convert IXF to DEL
When performing an EXPORT through DB2 Connect, the only supported output file structure is IXF. Does someone have or know about a utility to... -
Do I need to Convert with Convert.ToInt32(session("myNumber")) ?
Hello, I have this session("myNumber") = 888 Dim intNumber As Integer a) intNumber = session("myNumber") b) intNumber =...



Reply With Quote

