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

相關文章
相關標籤/搜索