Hallo ich hab mal wieder so ein GDlib Problem:
Das ist mein Thumbnailscript...
Geht auch nur ist jetzt die Frage wie ich ans untere Ecke des bildes einen Text schreiben kann! wer kann mir sagen wie das geht?!
Danke für eure Antworten
Code:
<?php header('Content-type: image/jpeg'); $file = $_REQUEST['f']; if (file_exists($file)) { $size= getimagesize($file); $width_old = $size[0]; $height_old = $size[1]; $old_picture = imagecreatefromjpeg($file); if ($width_old > $height_old) { $width_new = 400; $height_new = intval($height_old * $width_new / $width_old); } else { $height_new = 230; $width_new = intval($width_old * $height_new / $height_old); } $new_picture = imagecreatetruecolor($width_new, $height_new); imagecopyresampled($new_picture, $old_picture, 0, 0, 0, 0, $width_new, $height_new, $width_old, $height_old); imagejpeg($new_picture); } imagedestroy($new_picture); ?>
Geht auch nur ist jetzt die Frage wie ich ans untere Ecke des bildes einen Text schreiben kann! wer kann mir sagen wie das geht?!
Danke für eure Antworten

Kommentar