summaryrefslogtreecommitdiffstats
path: root/bootanimation
diff options
context:
space:
mode:
authorScott Warner <Tortel1210@gmail.com>2017-01-27 06:54:59 -0500
committerTim Wanders <timwanders241@gmail.com>2017-01-27 14:28:10 +0000
commit8b06d3a3b1dc5694de430083ac5ce3118705cb9e (patch)
treefeb7509c34adbb26ca5fd57bbd67a0e3eb7eb2d4 /bootanimation
parentc126a4e795a051329632e4e5ff4802e067afdd0b (diff)
downloadvendor_replicant-8b06d3a3b1dc5694de430083ac5ce3118705cb9e.zip
vendor_replicant-8b06d3a3b1dc5694de430083ac5ce3118705cb9e.tar.gz
vendor_replicant-8b06d3a3b1dc5694de430083ac5ce3118705cb9e.tar.bz2
bootanimation: Limit the PNGs to 250 colors
Some systems seem to have with the convert command as-is: convert: Cannot write PNG8 or color-type 3; colormap is NULL Because we are writing PNG8, there area a max of 256 colors total. Explicitly telling convert to stay under the max fixes the issue. Change-Id: I595fb4503396ca20226ea76bf7b15ed9878752fd
Diffstat (limited to 'bootanimation')
-rwxr-xr-xbootanimation/generate-bootanimation.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootanimation/generate-bootanimation.sh b/bootanimation/generate-bootanimation.sh
index 492113a..98be46b 100755
--- a/bootanimation/generate-bootanimation.sh
+++ b/bootanimation/generate-bootanimation.sh
@@ -26,7 +26,7 @@ for part_cnt in 0 1 2 3 4
do
mkdir -p $ANDROID_PRODUCT_OUT/obj/BOOTANIMATION/bootanimation/part$part_cnt
done
-tar xfp "vendor/cm/bootanimation/bootanimation.tar" --to-command="convert - -resize '$RESOLUTION' \"png8:$OUT/bootanimation/\$TAR_FILENAME\""
+tar xfp "vendor/cm/bootanimation/bootanimation.tar" --to-command="convert - -resize '$RESOLUTION' -colors 250 \"png8:$OUT/bootanimation/\$TAR_FILENAME\""
# Create desc.txt
echo "$IMAGESCALEWIDTH $IMAGESCALEHEIGHT" 60 > "$OUT/bootanimation/desc.txt"