ubuntu下安装并配置pngcrush工具:
1.下载pngcrush工具:
如图:
[img]http://dl.iteye.com/upload/attachment/250705/7ea0c691-22b7-3462-95b9-5b8b0a4bca14.jpg[/img]
2.解压该tar包
如图:
[img]http://dl.iteye.com/upload/attachment/250707/1d1713df-6232-3088-a494-e629e40c227e.jpg[/img]
3.安装pngcrush指令
如图:
[img]http://dl.iteye.com/upload/attachment/250709/aad05558-3890-3b72-b0ec-ba6c874c3434.jpg[/img]
4.输入pngcrush指令如图
[img]http://dl.iteye.com/upload/attachment/250711/62d35dc8-cb40-3639-a724-152eff05b688.jpg[/img]
出现上图所示,表明pngcrush工具安装成功,
5.测试,将file1.png 通过pngcrush压缩为file2.png
[img]http://dl.iteye.com/upload/attachment/250713/e9788627-9822-35e7-9cd3-02f6992d71cf.jpg[/img]
1.下载pngcrush工具:
sudo wget http://downloads.sourceforge.net/project/pmt/pngcrush/1.7.1/pngcrush-1.7.1.tar.gz
如图:
[img]http://dl.iteye.com/upload/attachment/250705/7ea0c691-22b7-3462-95b9-5b8b0a4bca14.jpg[/img]
2.解压该tar包
tar zxf pngcrush-1.7.1.tar.gz
如图:
[img]http://dl.iteye.com/upload/attachment/250707/1d1713df-6232-3088-a494-e629e40c227e.jpg[/img]
3.安装pngcrush指令
sudo apt-get install pngcrush
如图:
[img]http://dl.iteye.com/upload/attachment/250709/aad05558-3890-3b72-b0ec-ba6c874c3434.jpg[/img]
4.输入pngcrush指令如图
[img]http://dl.iteye.com/upload/attachment/250711/62d35dc8-cb40-3639-a724-152eff05b688.jpg[/img]
出现上图所示,表明pngcrush工具安装成功,
5.测试,将file1.png 通过pngcrush压缩为file2.png
[img]http://dl.iteye.com/upload/attachment/250713/e9788627-9822-35e7-9cd3-02f6992d71cf.jpg[/img]