iOS 使用pngcrush,压缩项目中的png图片

想看一下效果,原来34KB的图片,                      压缩以后,为21KBgit

              

 

一、下载pngcrush  https://github.com/Kjuly/pngcrushgithub

或者:https://pan.baidu.com/s/1S8ExFwnQcoCzC476Olnonwspa

二、解压后,在目录中建立(在没有的状况下):workspace_in、workspace_outcode

三、把须要压缩的图片放入workspace_in中blog

四、在终端 cd到当前目录后,执行 下边语句便可图片

   ./batch_script.ship

五、在workspace_out中能够看到压缩后的图片get

相关文章
相关标签/搜索