Merge pull request #5423 from nextcloud/better-svg-optimization

Remove XML header and line breaks in SVG files.
This commit is contained in:
Morris Jobke 2017-06-17 18:35:14 -05:00 committed by GitHub
commit 38cf9b8dc0
1 changed files with 1 additions and 1 deletions

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 */`;