Instagram-like图像过滤器
项目描述
Instagram-like图像过滤器。
可以与[instagram-client](https://bitbucket.org/acoomans/instagram-client)一起使用,在应用过滤器后上传图像。
## 依赖
Instagram-filters依赖于ImageMagick,可以在Mac上使用brew安装
brew install imagemagick
## 安装
python setup.py install
## 使用
首先,导入客户端
from instagram_filters.filters import *
实例化一个过滤器并应用它
f = Nashville(“image.jpg”) f.apply()
可用过滤器
Gotham
Kelvin
Lomo
Nashville
Toaster
注意 过滤器会就地更改图像。如果您想复制原始图像,请在应用任何过滤器之前确保复制它。
# 测试
使用以下命令运行测试
cd tests python test.py
## 致谢
此库受[“使用php创建instagram过滤器”tutsplus教程](http://net.tutsplus.com/tutorials/php/create-instagram-filters-with-php/)的启发。