Rev 773 Rev 774
Line 55... Line 55...
55 } 55 }
56 if($remove_thumb == false){ 56 if($remove_thumb == false){
57 $thumb = imagecreatetruecolor($thumb_width, $thumb_height); 57 $thumb = imagecreatetruecolor($thumb_width, $thumb_height);
58 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); 59 $black = ImageColorAllocate($thumb, 0, 0, 0);
60 ImageString ($thumb, 3, $thumb_width-120, $thumb_height-10, "www.mlab.cz", $black); 60 ImageString ($thumb, 3, $thumb_width-90, $thumb_height-15, "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;