Rev 787 Rev 788
Line 30... Line 30...
30 }elseif($extension == 'jpg' || $extension == 'jpeg'){ 30 }elseif($extension == 'jpg' || $extension == 'jpeg'){
31 if(!$image = imagecreatefromjpeg($path.$filename)){ 31 if(!$image = imagecreatefromjpeg($path.$filename)){
32 $remove_thumb = true; 32 $remove_thumb = true;
33 } 33 }
34 } 34 }
-   35 $img_height = $img_size['1'];
-   36 $img_width = $img_size['0'];
35 if($remove_thumb == false){ 37 if($remove_thumb == false){
36   38  
37 $black = ImageColorAllocate($image, 0, 0, 0); 39 $black = ImageColorAllocate($image, 0, 0, 0);
38 ImageString ($image, 3, $thumb_width-80, $thumb_height-15, "www.mlab.cz", $black); 40 ImageString ($image, 3, $img_width-80, $img_height-15, "www.mlab.cz", $black);
39 imagejpeg($image); 41 imagejpeg($image);
40   42  
41 } 43 }
42 }else{ 44 }else{
43 $remove_thumb = true; 45 $remove_thumb = true;
44 } 46 }
45   47  
46   48