$quell_file=imagecreatefromjpeg("./bilder/bild$i.jpg");
$height = imagesy($quell_file);
$width = imagesx($quell_file);
if ($height > $width) {
$quot=$height/$new_height;
$new_width=round($width/$quot);
$new_height = 120;
};
if ($height < $width) {
$quot=$width/$new_width;
$new_height==round($height/$quot);
$new_width = 160;
};
$ziel_file = imagecreatetruecolor($new_width,$new_height);
imagecopyresampled($ziel_file,$quell_file,0,0,0,0,$width,$height,$new_width,$new_height);
imageinterlace($ziel_file);
imagejpeg($ziel_file,"",70);
Ich will das ganze in eine Schleife einbauen und so mehrere Thumbnails auf einer Seite zu erzielen. Jetzt weiß ich nur nicht, wie ich diese Thumbnails einbinden soll!?!