Ralf: Temporäre Bildausgabe...

Beitrag lesen

Hallo Moe, so sieht mein code bislang aus:
----
$file = $derbg;
$size        = getimagesize($file);
$width      = $size[0];    $height      = $size[1];
    $old_picture = imagecreatefromjpeg($file);
    $new_picture = imagecreatetruecolor($width, $height);
    imagecopyresampled($new_picture, $old_picture, 0, 0, 0, 0, $width, $height, $width, $height);
    $transition          = 40;    $watermarkfile      = imagecreatefrompng('images/wasserzeichen.png');
    $waternarkpic_width  = imagesx($watermarkfile);
    $waternarkpic_height = imagesy($watermarkfile);
   // $watermarkdest_x    = $width / 2 - ($waternarkpic_width / 2);    $watermarkdest_y    = $height / 2 - ($waternarkpic_height / 2);
  if ($reihe_anfrage['medium'] == 2)
  {
   $watermarkdest_x    = $width / 2 - ($waternarkpic_width / 2);    $watermarkdest_y    = 260;
   }
   else
   {
   $watermarkdest_x    = $width / 2 - ($waternarkpic_width / 2);    $watermarkdest_y    = 370;
   }
    imagecopymerge($new_picture, $watermarkfile, $watermarkdest_x, $watermarkdest_y, 0, 0, $waternarkpic_width, $waternarkpic_height, $transition);

$bildname="images/".$reihe_anfrage['nr'].".jpg";

imagejpeg($new_picture,$bildname);

?>
<td  bordercolor="#666666" height="<?php echo $size2;?>" width="<?php echo $size1;?>" background="<?php echo $bildname; ;?>">
---

Wie kann ich es denn sonst machen?