diff options
author | 2020-10-10 04:30:10 +0100 | |
---|---|---|
committer | 2020-10-10 04:30:10 +0100 | |
commit | 8097423f3831979c681839abbe2b239111e26308 (patch) | |
tree | 35ddaa55eba42a964d78f972fa593e7b97bacdcb /minify-images.sh | |
parent | New translations updates (#994) (diff) | |
download | ferdium-app-8097423f3831979c681839abbe2b239111e26308.tar.gz ferdium-app-8097423f3831979c681839abbe2b239111e26308.tar.zst ferdium-app-8097423f3831979c681839abbe2b239111e26308.zip |
Revert "Use imagemin to minify images (#1008)"
This reverts commit 030197a95f007bdbe0cfb4bfe9ec189d58b2b6fc.
Diffstat (limited to 'minify-images.sh')
-rwxr-xr-x | minify-images.sh | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/minify-images.sh b/minify-images.sh deleted file mode 100755 index 3383c797f..000000000 --- a/minify-images.sh +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | #!/usr/bin/env sh | ||
2 | |||
3 | # Note: This script is needed due to this bug: https://github.com/imagemin/imagemin/issues/348 | ||
4 | # once the above is fixed, we should simply be able to specify the input directory where all image files are to be processed recursively | ||
5 | FILES=`find . -name "*.jpg" -o -name "*.jpeg" -o -name "*.bmp" -o -name "*.png" -type f | GREP_OPTIONS= egrep -v "node_modules|internal-server|recipes"` | ||
6 | for file in $FILES; do | ||
7 | echo "Minifying file: $file" | ||
8 | npx imagemin $file > $file | ||
9 | done | ||