Monday, January 25, 2010

Useful PNG commands

Useful command for handling PNG files.

Prerequisites: ImageMagick, Pngcrush


Resize to a given maximum size

for i in *png ; do convert $i -geometry 16x16 x/$i; done

Resize exactly to given size, adding transparent borders

for f in $(for i in x/* ; do file $i | grep -v '16 x 16' | cut -d: -f1; done) ; 
  do convert $f -type TrueColorMatte -compose Src -gravity center -extent 16x16 y/$f ; 


Trying different PNG compression settings, removing extra PNG contents (such as comments)

for i in y/*png ; do pngcrush  -rem alla -reduce -brute "$i" z/"$i"; done


  1. With the 4K screen, fc2 you will certainly take pleasure Android TV Box in playing a large range of video games Get brand new Android TV Box that you will certainly like. Best Android TV Box Get started with it today go to website as well as you will recognize

  2. The "La Partage" and "En Prison" rules apply to outside even money bets like odds and even, black or purple and low or excessive; they also apply when the ball lands within the zero slot. They are comparable within the sense that players solely lose half of their bet, however players cannot go away their bet on the desk for another spin with the La Partage rule. If a player loses, they can collect half their bet within the La Partage rule, or go away half their bet on the desk for the subsequent spin with the En Prison rule. This is the basic rule that all one|that every one} experienced roulette players follow. Once you suppose you have have} discovered the proper 카지노사이트 roulette desk on your games - let the roulette wheel spin for a couple of times earlier than you place your first bet.