Fix generate-half-res-anims.sh and halfres bootanimation.zips

bootanimation.zip contains PNG files and not JPG

Some zips aren't resized and use original resolution instead half resolution,
fix it too.

Change-Id: Ic12f93dc2a18f7ca9c9c7bff6b34dc0821bbfb4c
This commit is contained in:
Andreas Blaesius 2015-04-07 11:30:04 +02:00
parent ffe07b85eb
commit 700484dbcc
8 changed files with 3 additions and 3 deletions

View File

@ -14,9 +14,9 @@ for i in $HALF_RES_RESOLUTIONS; do
unzip ../../$i.zip desc.txt
else
unzip ../../$i.zip
for j in */*.jpg; do
convert $j -resize 50% tmp.jpg
mv tmp.jpg $j
for j in */*.[pP][nN][gG]; do
convert $j -resize 50% tmp.png
mv tmp.png $j
done
fi
zip -r0 ../$i.zip .