When we save our svg in our
www/resources/images/svg dir in our editor
we trigger a call to an ant target named
store-svg which does our grunt work.
Before we store the SVG we want to pre-proccess the file.
to create a smaller file size
and generate a gzipped version of the file.
In our pre-proccess stage we run scour an SVG scrubber.
We should see some improvement in size, however we can reduce the file size even
further by gziping. We could also gzip with scour however, we won’t,
as we have compiled Nginx
-with-http_gzip_static_module, and with the
we have no support for .svgz files. .
So instead we create gzip the file upload to eXistdb and allow Nginx to send the
compressed file with the “.gz” file name extension instead of the regular svg