/Web/thumb.php |
---|
57,7 → 57,7 |
$thumb = imagecreatetruecolor($thumb_width, $thumb_height); |
imagecopyresampled($thumb, $image, 0, 0, 0, 0, $thumb_width, $thumb_height, $img_size[0], $img_size[1] ); |
$black = ImageColorAllocate($thumb, 0, 0, 0); |
ImageString ($thumb, 3, $thumb_width-50, $thumb_height-20, "www.mlab.cz", $black); |
ImageString ($thumb, 3, $thumb_width-120, $thumb_height-10, "www.mlab.cz", $black); |
imagejpeg($thumb, "/tmp/".$filename); |
} |