|   Mailinglisten-Archive | 
> hat hier nicht mal einer einen image browser in php
> programmiert, der auch noch die bilder klein machen kann ?
> gibt es dazu eine URL ?
>
> thx - ich
Hatte ich schonmal geschickt -> GD muß mit GIF laufen (sonst kannste gif
auch rausnehmen)
<?
 $image = "torsten.jpg";    // Quellbild
 $width  = "300";    // Ausgabebreite
 $height = "400";    // Ausgabehoehe
 $imagetype = "png";    // Ausgebetyp: png, gif, jpeg
 $i5 = explode(".",$image);
 if($i5[count($i5) - 1] == "png"){  // Wenn Dateiendung png...
  $i1 = ImageCreateFromPNG($image);
 } else if ($i5[count($i5) - 1] == "gif"){
  $i1 = ImageCreateFromGIF($image);
 } else if ($i5[count($i5) - 1] == "jpg" || $i5[count($i5) - 1] == "jpeg"){
  $i1 = ImageCreateFromJPEG($image);
 }
 header ('Content-type: image/'.$imagetype); // Header für Imagetype
 $i2 = imagecreate($width,$height);
 imagecopyresized ($i2, $i1, 0, 0, 0, 0, $width, $height, ImageSX($i1),
ImageSY($i1));
 $a3 = "Image";
 $a4 = $a3.$imagetype;
 $a4 ($i2);
?>
    php::bar PHP Wiki - Listenarchive