[Cin] SVG source files in themes

Andrew Randrianasulu randrianasulu at gmail.com
Sat Apr 4 04:47:26 CEST 2020


They not eat space if you install binary package, but I found out
you can easily compress them with gzip :}

So, whole themes subfolder will weight on disk (after git unpacked it)
16545K as opposed 67,968,745 bytes right now.

Not sure if space-saving for unpacked git tree actually worth 
additional effort to unpack them if anyone want to make changes

In theory there is supportfor SVG compression, but not sure if Inkscape 
and co actually support it well (never tried)?

https://www.moxio.com/blog/6/serving-compressed-svg-files
--
 The SVG standard reserves the .svgz-extension for gzip-compressed SVG files, 
which can typically achieve about 20-50% of the original file size. 
When not actively editing them, saving SVG files as svgz makes sense: 
it saves disk space, the compression is lossless and it spares the time 
needed for on-the-fly compression when serving them over the web.
--

hm ....

This inspired by latest git commit, adding jpeg-compressed shapes :}

I also tried optipng on existing shapes, but result was slightly more than 1Mb of savings:


8412866 bytes optimized vs  9786K by default




More information about the Cin mailing list