Hello:
I have a small GD script that makes resizes jpegs. I'm having trouble with the photos turning a blue color when resized, does anyone know what that would be?
Any help would be great!
header("Content-type: image/jpeg");
$srcimage = imagecreatefromjpeg($image);
$destimage = imagecreate($t_width,$t_height);
$width = imageSX($srcimage);
$height = imageSY($srcimage);
imagecopyresized ($destimage,$srcimage,0,0,0,0,$t_width,$t_height,$width,$height);
ImageJPEG($destimage);
ImageDestroy($destimage);