M1cha/androidsvg

Please add SVGZ support (patch included)

Closed this issue · 2 comments

Hello Paul,

I've cloned your project and implemented support for SVGZ files/streams (i.e. 
GZIP-ed SVG):
https://code.google.com/r/matthiasstevens-androidsvg/source/detail?r=415fb0a7a77
2120cc7b35b0c71217f738030fdee

It only requires 22 of added lines in SVGParser (including comments).
I found the code to do this in one of the many svg-android forks (URL is in the 
commit message). But I've made a slight improvement to it which avoids crashes 
in case of InputStreams that don't support mark()/reset().

I've tested this with various svgz files. Try for yourself with the attached 
file.

I think it would be great if you would incorporate this in your library.
Thanks in advance,

Matthias

Original issue reported on code.google.com by matthias...@gmail.com on 21 Aug 2013 at 7:25

Attachments:

Fixed in revision 246.

Transparently support zipped SVG files (.svgz).

Thanks for the report and patch.  This feature will be in release 1.3.0.

Original comment by paul.leb...@gmail.com on 22 Aug 2013 at 8:05

  • Changed state: Fixed
This fix is available in the 1.2.1 release.

Original comment by paul.leb...@gmail.com on 31 Jan 2014 at 1:33