diff options
author | Marin Treselj <marin@pixelipo.com> | 2017-06-15 13:21:51 +0200 |
---|---|---|
committer | Marin Treselj <marin@pixelipo.com> | 2017-06-15 13:21:51 +0200 |
commit | 843f0ec6ade2a3562182a6851776ff404e6e9c27 (patch) | |
tree | 42b2f55ec0794ff028706540ca6605357fe48e2d /core/img | |
parent | ca3c69c8ae0fd7f0d13e87d7861c54e2950a2c09 (diff) | |
download | nextcloud-server-843f0ec6ade2a3562182a6851776ff404e6e9c27.tar.gz nextcloud-server-843f0ec6ade2a3562182a6851776ff404e6e9c27.zip |
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>
Diffstat (limited to 'core/img')
-rwxr-xr-x | core/img/image-optimization.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/img/image-optimization.sh b/core/img/image-optimization.sh index 3fad080dc79..b5de96e018b 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 */`; |