hmm naja tja habs hinbekommen
PHP-Code:
header("Content-type: image/jpeg");
Header("Content-type: image/png");
$image_name=$dateiname;
$new_width=170; //Image width Change if needed
$new_height=150; //Image height Change if needed
$source_path="archiv/orginal/"; //Source File path
$destination_path="archiv/thumbnail/"; //Destination file path
$destimg=ImageCreate($new_width,$new_height) or die("Problem In Creating image");
$srcimg=ImageCreateFromJPEG($source_path.$image_name) or die("Problem In opening Source Image");
ImageCopyResized($destimg,$srcimg,0,0,0,0,$new_width,$new_height,ImageSX($srcimg),ImageSY($srcimg)) or die("Problem In resizing");
ImageJPEG($destimg,$destination_path.$image_name) or die("Problem In saving");
aber an der qualität des bildes kann man nichts ändern oder? ist n wenig gekräuselt