diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-07-24 08:08:18 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-07-24 08:08:18 +0200 |
commit | 02b9388fc66568acbcb0381deb11cb21ba8380a6 (patch) | |
tree | 1b061b829c0398373b8150138c625f25d25d436d /core/img/image-optimization.sh | |
parent | 989614f9d5faa11157b232785537eb5cca927649 (diff) | |
download | nextcloud-server-02b9388fc66568acbcb0381deb11cb21ba8380a6.tar.gz nextcloud-server-02b9388fc66568acbcb0381deb11cb21ba8380a6.zip |
Move image-optimization.sh to build dir
* We should not ship this!
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/img/image-optimization.sh')
-rwxr-xr-x | core/img/image-optimization.sh | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/core/img/image-optimization.sh b/core/img/image-optimization.sh deleted file mode 100755 index b5de96e018b..00000000000 --- a/core/img/image-optimization.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -function recursive_optimize_images() { -cd $1; -optipng -o6 -strip all *.png; -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 --strip-xml-prolog --no-line-breaks; -done; -rm *.opttmp -for dir in `ls -d */`; -do - recursive_optimize_images $dir; - cd ..; -done; -} - -recursive_optimize_images ../../ |