53,11 → 53,11 |
$thumb_width = $width; |
$thumb_height = $height; |
} |
$black = ImageColorAllocate($image, 0, 0, 0); |
ImageString ($image, 8, $img_width-100, $img_height-30, "www.mlab.cz", $black); |
if($remove_thumb == false){ |
$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); |
imagejpeg($thumb, "/tmp/".$filename); |
|
} |