Skip to content

Instantly share code, notes, and snippets.

@yyyyyyuanfei
Created September 21, 2012 01:32
Show Gist options
  • Select an option

  • Save yyyyyyuanfei/3759298 to your computer and use it in GitHub Desktop.

Select an option

Save yyyyyyuanfei/3759298 to your computer and use it in GitHub Desktop.
还原为iOS优化过的PNG
find ./ -name "*.png" -depth 1 | sed 's:\([^/]*\.png\):\1 \1\.new:g' | xargs -n 2 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush -revert-iphone-optimizations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment