Hallöle
ich generiere mit folgendem Code Vorschaubilder für meine Galerien:
<?php
$orig = @imagecreatefromjpeg($path);
if ($orig)
{
$orig_w = imagesx($orig);
$orig_h = imagesy($orig);
$thumb_w = (int)($orig_w);
$thumb_h = (int)($orig_h);
$thumb = imagecreate($thumb_w, $thumb_h);
imagecopyresized($thumb, $orig, 0, 0, 0, 0, $thumb_w, $thumb_h, $orig_w, $orig_h);
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 864000) . ' GMT');
header('Content-Type: image/jpeg');
imagejpeg($thumb, '', 50);
}
?>
Leider läst die Qualität sehr zu wünschen übrig :-( (http://www.fcgservice.net/saison/fotos2.php?&main=23&d1=1&d2=4). Woran kann das liegen?
Gruß
Philipp