crap quality
Posted: Tue Oct 25, 2005 9:45 am
this thumbnail script is turning out images that seam to be missing bright colors. everything is dark and crappy even though i made imagejpeg at the highest quality
what am i missing here?
Code: Select all
function createThumb($image_path,$thumb_path,$image_name,$thumb_width = 100)
{
$src_img = imagecreatefromjpeg("$image_path/$image_name");
$origw=imagesx($src_img);
$origh=imagesy($src_img);
$new_w = $thumb_width;
$diff=$origw/$new_w;
$new_h=$new_w;
$dst_img = imagecreate($new_w,$new_h);
imagecopyresized($dst_img,$src_img,0,0,0,0,$new_w,$new_h,imagesx($src_img),imagesy($src_img));
imagejpeg($dst_img, "$thumb_path/$image_name", 70);
return true;
}