diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-06-17 18:35:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-17 18:35:14 -0500 |
commit | 38cf9b8dc030e795ea0f02a7680f93754596bf8c (patch) | |
tree | 89437c553ead061816b8b2459e31dbe8190eea1b | |
parent | d7ebe0b37b2230f585e083033d734b19a4fdb525 (diff) | |
parent | 843f0ec6ade2a3562182a6851776ff404e6e9c27 (diff) | |
download | nextcloud-server-38cf9b8dc030e795ea0f02a7680f93754596bf8c.tar.gz nextcloud-server-38cf9b8dc030e795ea0f02a7680f93754596bf8c.zip |
Merge pull request #5423 from nextcloud/better-svg-optimization
Remove XML header and line breaks in SVG files.
-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 */`; |