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