vendor: bootanimation: reduce size
reduce bootanimation size by decreasing image quality.
set the quality value to 50 for all resolutions.
Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Ic9538859526e0fcfdb319f64884f477313c0a6fd
diff --git a/prebuilt/bootanimation/res/generate-packages.sh b/prebuilt/bootanimation/res/generate-packages.sh
index 8448105..db0b626 100755
--- a/prebuilt/bootanimation/res/generate-packages.sh
+++ b/prebuilt/bootanimation/res/generate-packages.sh
@@ -48,6 +48,9 @@
EOF
}
+# image quality
+quality=50;
+
# reading images
for i in ${RESOLUTIONS}; do
@@ -68,17 +71,6 @@
echo "Rewriting desc.txt...";
rewrite_desc "${i}"
-# set image quality
-# add an aggressive value for low resolutions
- case "${i}" in
- "360x240"|"420x280"|"480x320")
- quality=80;
- ;;
- *)
- quality=90;
- ;;
- esac
-
echo "Resizing images...";
for j in Part*/*.jpg; do
convert_image "${j}" "${i}" $quality;