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
gugelfrei
Andreas Blaesius 9 years ago
parent ffe07b85eb
commit 700484dbcc

@ -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 .

Loading…
Cancel
Save