header("Content-type: image/jpeg");
.. ??
function show_grayscale($filename){
$img_size = GetImageSize($filename);
$width = $img_size[0];
$height = $img_size[1];
$img = imageCreate($width,$height);
for ($c = 0; $c < 256; $c++) {
ImageColorAllocate($img, $c,$c,$c);
}
$img2 = ImageCreateFromJpeg($filename);
ImageCopyMerge($img,$img2,0,0,0,0, $width, $height, 100);
//
header("Content-type: image/jpeg");
imagejpeg($img);
imagedestroy($img);
}
GD
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
15 , 32 (14.03.2010 - 01:16) Nikitian ():
?
4 , 34 (14.03.2010 - 01:21) tyta ():
Warning: Cannot modify header information - headers already sent by (output started at Z:\home\bristolcafe.ru\www\template.php:7) in Z:\home\bristolcafe.ru\www\mod\mod_main\main.php on line 13
JFIF>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality C $.' ",#(7),01444'9=82<.342C 2!!22222222222222222222222222222222222222222222222222," ĵ}!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ĵw!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz?ϼ.xUڵO#m^'xݣ4KrH\pg sʼQb[Ucb3n5ðm\\|u@cv%~8ypady2¹8aI]C;hVgga8\:xZ+<H_Ge 98COI.#v>8;y\ W)5y8 >>Ll u=6㺔,c1{P|}U<2|K8slOWx\sqP2nܥpv 3C 2Itc@##`Ux?.v!N8]랄b"?/*AJ6@r~-A1/t OTs\YH0qS.'GjM} t|㤆k? o(d?¼9I< P?a?r\y1(OQ#<b
1 (14.03.2010 - 01:22) Nikitian ():
output started at Z:\home\bristolcafe.ru\www\template.php:7
. , .
. , .
2 , 16 (14.03.2010 - 01:24) tyta ():
<html>
<head>
<title></title>
<!--<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">-->
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="login.css">
<script type="text/javascript" src="js/png.js"></script>
<?
if ($_SESSION['status']=="admin") {
?>
7 ((
8 , 25 (14.03.2010 - 01:32) Nikitian ():
, ? html-?

2 , 12 (14.03.2010 - 01:34) tyta ():
)) )) ?
(( .. .. ((
. ? header
(( .. .. ((
. ? header
12 , 46 (14.03.2010 - 01:47) Nikitian ():
, : ,
4 , 41 (14.03.2010 - 01:52) tyta ():
template.php .. .. ))
..
..
8 , 48 (14.03.2010 - 02:01) Nikitian ():
.. |
imagejpeg() .

7 , 19 (14.03.2010 - 02:08) tyta ():
.. .. ))
$save_file = 'temp/cb' . $filename;
imagejpeg($img, $save_file , 100);
echo ("<img src='" . $save_file . "'>"."<BR>");
)))
$save_file = 'temp/cb' . $filename;
imagejpeg($img, $save_file , 100);
echo ("<img src='" . $save_file . "'>"."<BR>");
)))