From ba9c2546af50ea6c906d064d34ea6b35df6e977b Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Wed, 8 May 2013 19:59:06 +0200 Subject: [PATCH] support old verisn of pngquant with no auto set for bitdeth --- builder-targets-cb.sh | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/builder-targets-cb.sh b/builder-targets-cb.sh index 046d05b..b8432ca 100644 --- a/builder-targets-cb.sh +++ b/builder-targets-cb.sh @@ -73,75 +73,74 @@ function create() { #### 8bit ############################################################################################################################################# # 256x256 - #convert -verbose -quality 100 $type-256x256-24bit.png -depth 8 -colors 256 +dither $type-256x256-8bit.png cp $type-256x256-24bit.png $type-256x256.png - pngquant $type-256x256.png - mv $type-256x256-??8.png $type-256x256-8bit.png - + pngquant 256 $type-256x256.png + convert -verbose -quality 100 $type-256x256-??8.png -depth 8 -colors 256 +dither $type-256x256-8bit.png + rm $type-256x256-??8.png # 180x180 #convert -verbose -quality 100 $type-180x180-24bit.png -depth 8 -colors 256 +dither $type-180x180-8bit.png cp $type-180x180-24bit.png $type-180x180.png - pngquant $type-180x180.png + pngquant 256 $type-180x180.png mv $type-180x180-??8.png $type-180x180-8bit.png # 150x150 #convert -verbose -quality 100 $type-150x150-24bit.png -depth 8 -colors 256 +dither $type-150x150-8bit.png cp $type-150x150-24bit.png $type-150x150.png - pngquant $type-150x150.png + pngquant 256 $type-150x150.png mv $type-150x150-??8.png $type-150x150-8bit.png # 128x128 #convert -verbose -quality 100 $type-128x128-24bit.png -depth 8 -colors 256 +dither $type-128x128-8bit.png cp $type-128x128-24bit.png $type-128x128.png - pngquant $type-128x128.png + pngquant 256 $type-128x128.png mv $type-128x128-??8.png $type-128x128-8bit.png # 96x96 #convert -verbose -quality 100 $type-96x96-24bit.png -depth 8 -colors 256 +dither $type-96x96-8bit.png cp $type-96x96-24bit.png $type-96x96.png - pngquant $type-96x96.png + pngquant 256 $type-96x96.png mv $type-96x96-??8.png $type-96x96-8bit.png # 72x72 #convert -verbose -quality 100 $type-72x72-24bit.png -depth 8 -colors 256 +dither $type-72x72-8bit.png cp $type-72x72-24bit.png $type-72x72.png - pngquant $type-72x72.png + pngquant 256 $type-72x72.png mv $type-72x72-??8.png $type-72x72-8bit.png # 64x64 #convert -verbose -quality 100 $type-64x64-24bit.png -depth 8 -colors 256 +dither $type-64x64-8bit.png cp $type-64x64-24bit.png $type-64x64.png - pngquant $type-64x64.png + pngquant 256 $type-64x64.png mv $type-64x64-??8.png $type-64x64-8bit.png # 50x50 #convert -verbose -quality 100 $type-50x50-24bit.png -depth 8 -colors 256 +dither $type-50x50-8bit.png cp $type-50x50-24bit.png $type-50x50.png - pngquant $type-50x50.png + pngquant 256 $type-50x50.png mv $type-50x50-??8.png $type-50x50-8bit.png # 48x48 #convert -verbose -quality 100 $type-48x48-24bit.png -depth 8 -colors 256 +dither $type-48x48-8bit.png cp $type-48x48-24bit.png $type-48x48.png - pngquant $type-48x48.png + pngquant 256 $type-48x48.png mv $type-48x48-??8.png $type-48x48-8bit.png # 40x40 #convert -verbose -quality 100 $type-40x40-24bit.png -depth 8 -colors 256 +dither $type-40x40-8bit.png cp $type-40x40-24bit.png $type-40x40.png - pngquant $type-40x40.png + pngquant 256 $type-40x40.png mv $type-40x40-??8.png $type-40x40-8bit.png # 32x32 #convert -verbose -quality 100 $type-32x32-24bit.png -depth 8 -colors 256 +dither $type-32x32-8bit.png cp $type-32x32-24bit.png $type-32x32.png - pngquant $type-32x32.png + pngquant 256 $type-32x32.png mv $type-32x32-??8.png $type-32x32-8bit.png # 30x30 #convert -verbose -quality 100 $type-30x30-24bit.png -depth 8 -colors 256 +dither $type-30x30-8bit.png cp $type-30x30-24bit.png $type-30x30.png - pngquant $type-30x30.png + pngquant 256 $type-30x30.png mv $type-30x30-??8.png $type-30x30-8bit.png # 24x24 #convert -verbose -quality 100 $type-24x24-24bit.png -depth 8 -colors 256 +dither $type-24x24-8bit.png cp $type-24x24-24bit.png $type-24x24.png - pngquant $type-24x24.png + pngquant 256 $type-24x24.png mv $type-24x24-??8.png $type-24x24-8bit.png # 16x16 #convert -verbose -quality 100 $type-16x16-24bit.png -depth 8 -colors 256 +dither $type-16x16-8bit.png cp $type-16x16-24bit.png $type-16x16.png - pngquant $type-16x16.png + pngquant 256 $type-16x16.png mv $type-16x16-??8.png $type-16x16-8bit.png #### 4bit #############################################################################################################################################