Remove XML heared and line breaks in SVG files.

My suggestion for further SVG optimiztion - as mentioned in #5229

Signed-off-by: Marin Treselj <marin@pixelipo.com>
This commit is contained in:
Marin Treselj 2017-06-15 13:21:51 +02:00
parent ca3c69c8ae
commit 843f0ec6ad
No known key found for this signature in database
GPG key ID: 905E788FB6948E56

View file

@ -7,7 +7,7 @@ jpegoptim --strip-all *.jpg;
for svg in `ls *.svg`;
do
mv $svg $svg.opttmp;
scour -i $svg.opttmp -o $svg --create-groups --enable-id-stripping --enable-comment-stripping --shorten-ids --remove-metadata;
scour -i $svg.opttmp -o $svg --create-groups --enable-id-stripping --enable-comment-stripping --shorten-ids --remove-metadata --strip-xml-prolog --no-line-breaks;
done;
rm *.opttmp
for dir in `ls -d */`;