I upload gifs which I want to convert and save as jpgs. I do this:
$image = @imagecreatefromgif($filename);
$image_p = imagecreatetruecolor($new_width, $new_height);
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
imagejpeg($image_p, $filename_tn, 100); // 100% quality
Will that do the job, or is something else needed?