As we all know, the png images included in the iPhone are already compressed and cannot be viewed directly. However, they can be converted to the source image using tools.
Conversion to source Image
After Xcode is installed (My installed version is 4.3), you can use command line conversion.
/Applications/Xcode. app/Contents/Developer/Platforms/iPhoneOS. platform/Developer/usr/bin/pngcrush-revert-iphone-optimizations src.png dst.png
This command line is too long to remember, so I am ~ /. Add an alias to the bash_profile.
Alias pngcrush = "/Applications/Xcode. app/Contents/Developer/Platforms/iphone OS. platform/Developer/usr/bin/pngcrush-revert-iphone-optimizations"
Therefore, the previous commands can be simplified
Pngcrush src.png dst.png
Batch conversion png
With a simple shell, you can batch convert png images to the original image.
For I in 'ls *. png '; do pngcrush $ I/tmp/$ I; mv/tmp/$ I; done
Author Volcano