Skip to content

Instantly share code, notes, and snippets.

@ericdagenais
Created July 6, 2012 06:45
Show Gist options
  • Save ericdagenais/3058469 to your computer and use it in GitHub Desktop.
Save ericdagenais/3058469 to your computer and use it in GitHub Desktop.
Uncrush PNG Single Line
find . -type d ! -name uncrushed -print | sed 's/\.\///' | xargs -n1 -I '{}' mkdir -p "uncrushed/{}" && find . -name \*.png -print | grep -v './uncrushed/' | sed 's/\.\///' | xargs -n1 -I '{}' /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush -q -revert-iphone-optimizations '{}' 'uncrushed/{}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment