Rev 777 Rev 783
Line 53... Line 53...
53 $thumb_height = $height; 53 $thumb_height = $height;
54 } 54 }
55 if($remove_thumb == false){ 55 if($remove_thumb == false){
56 $thumb = imagecreatetruecolor($thumb_width, $thumb_height); 56 $thumb = imagecreatetruecolor($thumb_width, $thumb_height);
57 imagecopyresampled($thumb, $image, 0, 0, 0, 0, $thumb_width, $thumb_height, $img_size[0], $img_size[1] ); 57 imagecopyresampled($thumb, $image, 0, 0, 0, 0, $thumb_width, $thumb_height, $img_size[0], $img_size[1] );
58 $black = ImageColorAllocate($thumb, 0, 0, 0); 58 /* $black = ImageColorAllocate($thumb, 0, 0, 0);
59 if ($filename <> "nopicture2.jpg") {ImageString ($thumb, 3, $thumb_width-80, $thumb_height-15, "www.mlab.cz", $black);} 59 if ($filename <> "nopicture2.jpg") {ImageString ($thumb, 3, $thumb_width-80, $thumb_height-15, "www.mlab.cz", $black);}
60 imagejpeg($thumb, "/tmp/".$filename); 60 */ imagejpeg($thumb, "/tmp/".$filename);
61   61  
62 } 62 }
63 }else{ 63 }else{
64 $remove_thumb = true; 64 $remove_thumb = true;
65 } 65 }