跳转到主要内容

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/)的启发。

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

instagram-filters-0.1.tar.gz (3.1 kB 查看散列)

上传时间:

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页