Permalink
Browse files

PNG, JPEG Images Optimization script by VUKO! :) + optimization.

  • Loading branch information...
dorimanx committed Nov 12, 2012
1 parent 3e63d0a commit cdcd7f3035552009cb4a48cab794958e1eb1cd31
View
BIN res/images/charger/battery_0.png 100755 → 100644
Binary file not shown.
View
BIN res/images/charger/battery_1.png 100755 → 100644
Binary file not shown.
View
BIN res/images/charger/battery_2.png 100755 → 100644
Binary file not shown.
View
BIN res/images/charger/battery_3.png 100755 → 100644
Binary file not shown.
View
BIN res/images/charger/battery_4.png 100755 → 100644
Binary file not shown.
View
BIN res/images/charger/battery_5.png 100755 → 100644
Binary file not shown.
View
Binary file not shown.
View
BIN res/images/charger/battery_fail.png 100755 → 100644
Binary file not shown.
View
0 res/images/icon_clockwork.png 100755 → 100644
No changes.
View
0 res/images/recovery-icon.png 100755 → 100644
No changes.
@@ -0,0 +1,23 @@
+#/bin/bash
+
+# Optimization script by @VUKO github
+
+#############################################
+# howto: compress pictures
+# You will need to install binary files first
+# apt-get install aptitude
+# aptitude install optipng pngcrush jpegoptim
+#############################################
+
+find . -iname '*.png' -exec optipng -o7 {} \;
+
+for file in `find . -name "*.png"`;do
+ echo $file;
+ pngcrush -rem alla -reduce -brute "$file" tmp_img_file.png;
+ mv -f tmp_img_file.png $file;
+done;
+
+find . -iname '*.jpg' -exec jpegoptim --force {} \;
+
+echo "done, picks optimized"
+

0 comments on commit cdcd7f3

Please sign in to comment.