一、windows安装步骤
- 安装Python
- 安装PIL
- 安装 Python 的 easy_install
- 添加Python的脚本目录到path
- 运行如下命令 easy_install glue
二、常用命令
1.快速: glue 源文件夹名称 输出文件夹名称
glue source output2.排序:
glue source output --square|vertical|hortizontal|diagonal|vertical-right|horizontal-bottom3.去掉图片多余的空白
glue source output --crop4.在不同的文件夹下生成css和img
glue source --img=images/compiled --css=css/compiled5.生成一个测试的html
glue source output --html6.更改文件格式
glue source output --less7.展开间距并且不计算为宽高
glue source output --10glue source output --'10 20'glue source output --'10 20 30 40'8.排序
glue source output --maxside|width|height|area|filenameglue source output ---maxside|-width|-height|-area|-filename9.在图像周围填充间距
glue source output --10glue source output --10 20glue source output --10 20 30 4010.图片格式
glue source output --png811.后台监听
glue source output --watch