Line 51... |
Line 51... |
51 |
$thumb_height = $height; |
51 |
$thumb_height = $height; |
52 |
}elseif($img_height == $img_width) { |
52 |
}elseif($img_height == $img_width) { |
53 |
$thumb_width = $width; |
53 |
$thumb_width = $width; |
54 |
$thumb_height = $height; |
54 |
$thumb_height = $height; |
55 |
} |
55 |
} |
56 |
$black = ImageColorAllocate($image, 0, 0, 0); |
- |
|
57 |
ImageString ($image, 8, $img_width-100, $img_height-30, "www.mlab.cz", $black); |
- |
|
58 |
if($remove_thumb == false){ |
56 |
if($remove_thumb == false){ |
59 |
$thumb = imagecreatetruecolor($thumb_width, $thumb_height); |
57 |
$thumb = imagecreatetruecolor($thumb_width, $thumb_height); |
60 |
imagecopyresampled($thumb, $image, 0, 0, 0, 0, $thumb_width, $thumb_height, $img_size[0], $img_size[1] ); |
58 |
imagecopyresampled($thumb, $image, 0, 0, 0, 0, $thumb_width, $thumb_height, $img_size[0], $img_size[1] ); |
- |
|
59 |
$black = ImageColorAllocate($thumb, 0, 0, 0); |
- |
|
60 |
ImageString ($thumb, 3, $thumb_width-50, $thumb_height-20, "www.mlab.cz", $black); |
61 |
imagejpeg($thumb, "/tmp/".$filename); |
61 |
imagejpeg($thumb, "/tmp/".$filename); |
62 |
|
62 |
|
63 |
} |
63 |
} |
64 |
}else{ |
64 |
}else{ |
65 |
$remove_thumb = true; |
65 |
$remove_thumb = true; |