From 843f0ec6ade2a3562182a6851776ff404e6e9c27 Mon Sep 17 00:00:00 2001 From: Marin Treselj Date: Thu, 15 Jun 2017 13:21:51 +0200 Subject: [PATCH] Remove XML heared and line breaks in SVG files. My suggestion for further SVG optimiztion - as mentioned in #5229 Signed-off-by: Marin Treselj --- core/img/image-optimization.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/img/image-optimization.sh b/core/img/image-optimization.sh index 3fad080dc7..b5de96e018 100755 --- a/core/img/image-optimization.sh +++ b/core/img/image-optimization.sh @@ -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 */`;