Re:The feature supported in IE6, but not Chrome
by thomseddon on Thursday August 23, 2012 @08:59AM
(#4422091)
Right you are! Thanks alot.
http://www.thestudentcloud.co.uk/hn/test2.php
<?php
header('Content-Encoding: gzip');
header('Content-Type: image/jpeg');
$data = file_get_contents('test.jpg');
$gzdata = gzencode($data, 9);
$fout = fopen('php://output', "w");
fwrite($fout, $gzdata);
fclose($fout);
To see Chrome decode your test image, use gzencode() or set Content-Encoding to deflate.