Rev 769 Rev 770
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, 1, $img_width-50, $img_height-10, "www.mlab.cz", $black);
56 if($remove_thumb == false){ 58 if($remove_thumb == false){
57 $thumb = imagecreatetruecolor($thumb_width, $thumb_height); 59 $thumb = imagecreatetruecolor($thumb_width, $thumb_height);
58 imagecopyresampled($thumb, $image, 0, 0, 0, 0, $thumb_width, $thumb_height, $img_size[0], $img_size[1] ); 60 imagecopyresampled($thumb, $image, 0, 0, 0, 0, $thumb_width, $thumb_height, $img_size[0], $img_size[1] );
59 imagejpeg($thumb, "/tmp/".$filename); 61 imagejpeg($thumb, "/tmp/".$filename);
60   62