Skip to content

Commit 2623a5b

Browse files
committed
update
1 parent 46167b6 commit 2623a5b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: compress-images.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
# Improved as per feedback from @pascal - https://gist.github.com/julianxhokaxhiu/c0a8e813eabf9d6d9873#gistcomment-3086462
3+
find . -type f -iname "*.png" -exec optipng -nb -nc {} \;
4+
find . -type f -iname "*.png" -exec advpng -z4 {} \;
5+
find . -type f -iname "*.png" -exec pngcrush -rem gAMA -rem alla -rem cHRM -rem iCCP -rem sRGB -rem time -ow {} \;
6+
find . -type f \( -iname "*.jpg" -o -iname "*.jpeg" \) -exec jpegoptim -f --strip-all {} \;

0 commit comments

Comments
 (0)