imgbi / img.bi

img.bi main website
GNU General Public License v3.0
194 stars 29 forks source link

SVGZ support #28

Closed suhr closed 9 years ago

suhr commented 9 years ago

Subj.

komachi commented 9 years ago

Well, seems like there is a problem. Both Firefox and Chrome can generate datauri from svgz file (using mime type image/svg+xml-compressed), but can't display it. There is probably a way to decompress it in browser using some JS gzip realizations, like gzip-js, and then upload it like a normal svg file, but it seems redundant for me. So this is probably won't be fixed until at least one popular browser start to understand such datauris, but if you want to give it a try, just add image/svg+xml-compressed to config.json.