$hoehe) { if($breite > 130) { $neueBreite=130; $neueHoehe=intval($hoehe*$neueBreite/$breite); } } else { if($hoehe > 130) { $neueHoehe=130; $neueBreite=intval($breite*$neueHoehe/$hoehe); } } header ("Content-type: image/jpeg"); $altesBild=ImageCreateFromJPEG($bild); $neuesBild=ImageCreateTrueColor($neueBreite,$neueHoehe); ImageCopyResized($neuesBild,$altesBild,0,0,0,0,$neueBreite,$neueHoehe,$breite,$hoehe); ImageJPEG($neuesBild); ?>