55,9 → 55,9 |
if($remove_thumb == false){ |
$thumb = imagecreatetruecolor($thumb_width, $thumb_height); |
imagecopyresampled($thumb, $image, 0, 0, 0, 0, $thumb_width, $thumb_height, $img_size[0], $img_size[1] ); |
$black = ImageColorAllocate($thumb, 0, 0, 0); |
/* $black = ImageColorAllocate($thumb, 0, 0, 0); |
if ($filename <> "nopicture2.jpg") {ImageString ($thumb, 3, $thumb_width-80, $thumb_height-15, "www.mlab.cz", $black);} |
imagejpeg($thumb, "/tmp/".$filename); |
*/ imagejpeg($thumb, "/tmp/".$filename); |
|
} |
}else{ |
67,6 → 67,6 |
} |
|
|
header("Content-type: image/jpeg"); |
header("Content-type: image/jpeg"); |
readfile("/tmp/".$filename); |
?> |