mirror of
https://github.com/klokantech/tileserver-php.git
synced 2025-01-17 22:28:37 +01:00
Merge pull request #79 from ramunasd/patch-1
Faster and ~70% smaller empty png tile
This commit is contained in:
commit
494669f5d7
@ -420,10 +420,8 @@ class Server {
|
||||
default:
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
header('Content-type: image/png');
|
||||
$a = '';
|
||||
for($i=1; $i < 338; $i++){$a .= 'A';}
|
||||
echo base64_decode('iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAABFUl'
|
||||
. 'EQVR42u3BMQEAAADCoPVP7WsIo' . $a . 'eAMBPAAB2ClDBAAAAABJRU5ErkJggg');
|
||||
// 256x256 transparent optimised png tile
|
||||
echo hex2bin('89504e470d0a1a0a0000000d494844520000010000000100010300000066bc3a2500000003504c5445000000a77a3dda0000000174524e530040e6d8660000001f494441541819edc1010d000000c220fba77e0e37600000000000000000e70221000001f5a2bd040000000049454e44ae426082');
|
||||
break;
|
||||
}
|
||||
die;
|
||||
|
Loading…
x
Reference in New Issue
Block a user