| 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 |
} |
| 66 |
|
66 |
|
| 67 |
} |
67 |
} |
| 68 |
|
68 |
|
| 69 |
|
69 |
|
| 70 |
header("Content-type: image/jpeg"); |
70 |
header("Content-type: image/jpeg"); |
| 71 |
readfile("/tmp/".$filename); |
71 |
readfile("/tmp/".$filename); |
| 72 |
?> |
72 |
?> |