library for instagram filters
Project description
pilgram
A python library for instagram filters.
The filter implementations are inspired by CSSgram.
Requirements
- Python 2 or 3
- Pillow or pillow-simd
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')
Demo
Test
pipenv install --dev
make test # python 3
make test-tox # python 2 and 3
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.2.tar.gz
(761.5 kB
view details)
Built Distribution
pilgram-1.0.2-py3-none-any.whl
(789.6 kB
view details)
File details
Details for the file pilgram-1.0.2.tar.gz
.
File metadata
- Download URL: pilgram-1.0.2.tar.gz
- Upload date:
- Size: 761.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 196164aa8472b69d57b3243a03e5ef8eeb40170aec7d6c9c2e6752bac489167a |
|
MD5 | 87be5285126584b28bdc5a58e43073e9 |
|
BLAKE2b-256 | 4e3c14f9264b75bf84d722b1a1c0683c750d6fcb58c30416b9086e403a618991 |
File details
Details for the file pilgram-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: pilgram-1.0.2-py3-none-any.whl
- Upload date:
- Size: 789.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 843e46e02bc23122a09522a51ac4fc3d7fa7370621eeea2c139acbad45e58ab7 |
|
MD5 | f4d74ae4c04b7850cfa11c2c651e7748 |
|
BLAKE2b-256 | 6b07a93b58b438469ead480034952e775eee474f9b77b83d3f36ea3876afca46 |