Use sharp instead of pngjs for image compression + webp & jpeg support

This commit is contained in:
Petr Sloup
2016-03-02 16:22:01 +01:00
parent 5d0e27b030
commit 40a7ee5e62
3 changed files with 23 additions and 13 deletions

View File

@@ -58,7 +58,8 @@ module.exports = function(opts, callback) {
}
info.tiles = utils.getTileUrls(req.protocol, domains, req.headers.host,
prefix, tilePath, 'png', req.query.key);
prefix, tilePath, info.format,
req.query.key);
callback(null, info);
});