Skip to main content

library for instagram filters

Project description

pilgram

PyPI version CircleCI codecov

A python library for instagram filters.

screenshot

The filter implementations are inspired by CSSgram.

Requirements

Install

pip install pillow # or pip install pillow-simd
pip install pilgram

Usage

Available instagram filters on pilgram: _1977, aden, brannan, brooklyn, clarendon, earlybird, gingham, hudson, inkwell, kelvin, lark, lofi, maven, mayfair, moon, nashville, perpetua, reyes, rise, slumber, stinson, toaster, valencia, walden, willow, xpro2

from PIL import Image
import pilgram

im = Image.open('sample.jpg')
pilgram.aden(im).save('sample-aden.jpg')

Similarly, pilgram provides css filters as a by-product. Available css filters on pilgram.css: contrast, grayscale, hue_rotate, saturate, sepia

from PIL import Image
import pilgram.css

im = Image.open('sample.jpg')
pilgram.css.sepia(im).save('sample-sepia.jpg')

Test

pipenv install --dev
make test

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pilgram-1.0.1.tar.gz (760.9 kB view details)

Uploaded Source

Built Distribution

pilgram-1.0.1-py3-none-any.whl (789.4 kB view details)

Uploaded Python 3

File details

Details for the file pilgram-1.0.1.tar.gz.

File metadata

  • Download URL: pilgram-1.0.1.tar.gz
  • Upload date:
  • Size: 760.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for pilgram-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9ae02fb306b6f38b438b038212755b945e1b4e0da0590d3b506298fc30284eae
MD5 a8a69abe1e3d1cff9066d01068d6512f
BLAKE2b-256 bbd4010ad3e133ac775924a2d412d1648ea035512390427b9f3ac60e1c1e5136

See more details on using hashes here.

File details

Details for the file pilgram-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pilgram-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 789.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for pilgram-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d8cc82d781d566be9d4427335df9261341881b00d9be4c88d0474410acd80f90
MD5 4c6226bfb47f2a01271265ce9b487a16
BLAKE2b-256 f41aa0f49571473289b5b5f2f303f7c83d6e207f81499ba6607ebc8c23cbf764

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page