diff options
author | 2020-10-10 04:31:24 +0100 | |
---|---|---|
committer | 2020-10-10 04:31:24 +0100 | |
commit | 89e95154199b2e5062bd6b10ec932d1366ff7eae (patch) | |
tree | 0a5c8893159378944f11041635c4615da5f4ad2a /minify-images.sh | |
parent | Add recipe for Microsoft To Do (#325) (diff) | |
download | ferdium-recipes-89e95154199b2e5062bd6b10ec932d1366ff7eae.tar.gz ferdium-recipes-89e95154199b2e5062bd6b10ec932d1366ff7eae.tar.zst ferdium-recipes-89e95154199b2e5062bd6b10ec932d1366ff7eae.zip |
Revert "Use imagemin to minify images (#323)"
This reverts commit 5f7d8ebe6d8a9a9e5a1b4e9f041ece1a7ae38ab1.
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 e9c804c..0000000 --- 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"` | ||
6 | for file in $FILES; do | ||
7 | echo "Minifying file: $file" | ||
8 | npx imagemin $file > $file | ||
9 | done | ||