|
Posted by Ron Eggler on 05/23/05 19:05
Hi,
I'm creating thumbnails by following code. it works fine but the created
thumbnails have weird colors, not like the original, why?:
[code]
//JPG ausgabe
$altesBild=ImageCreateFromJPEG($pic);
$neuesBild=ImageCreate($neueBreite,$neueHoehe);
ImageCopyResized($neuesBild,$altesBild,0,0,0,0,$neueBreite,$neueHoehe,$breite,$hohe);
//$info = getimagesize($neuesBild);
//$farbe_b = imagecolorallocate($neuesBild,10,36,106);
//imagerectangle($neuesBild,1,1,$info[0]-1,$info[1]-1,$farbe_b);
Imagejpeg($neuesBild);
?>
[/code]
Thank you!
--
roN
www.rideon.ch
Navigation:
[Reply to this message]
|