ImgPy
Image processing library for Python with animated GIFs support - proxy wrapper around Pillow library with simple usable interface and access to each frame.
Features
Attributes:
exif - dict with EXIF tags and GPS dict with GPS tags if presented
mode_desc - image mode description
frame_count - frame count
animated - flag, which shows if image is animated
frames - frame list
Methods:
load - gets called when you access frames attribute for the first time or call any processing or save method, call this method explicitly to load all or limited number of frames (first n frames or random n frames without reordering)
save - save image
close - close image
Requirements
Python 3.5+
Pillow 4.1.1+
Setup
python-3.6 -m venv .env
source .env/bin/activate
pip install imgpy
Usage
from imgpy import Img
# Crop image
with Img(fp='test.gif') as im:
im.crop(box=(10, 10, 110, 110))
im.save(fp='crop.gif')
# Create thumbnail image
with Img(fp='test.gif') as im:
im.thumbnail(size=(100, 100))
im.save(fp='thumb.gif')
# Save 10 random GIF frames
with Img(fp='test.gif') as im:
im.load(limit=10, first=False)
im.save(fp='random.gif')
Tests
Run tests: py.test
Metadata
Release files for imgpy 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| imgpy-1.1.0.tar.gz | 4.3 kB | Without provenance | Details for imgpy-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imgpy-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for imgpy-1.1.0-py3-none-any.whl |
Total release size: 9.7 kB
Release files / imgpy-1.1.0.tar.gz
| Download URL | imgpy-1.1.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae154ec31f4b095ad5acb8ed7165e5f1c13b96768d998f322498382afa1abc13
|
|
BLAKE2b-256 checksum How to use checksums |
651e7f8cdfc3072438a16c433b4adf4a421eb3b4a47dcf28efe44858b2c79fcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / imgpy-1.1.0-py3-none-any.whl
| Download URL | imgpy-1.1.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f04b0911da0f1b44a17f54bbc3358f8e4cf62144ece8238222b8f54a429b1e0
|
|
BLAKE2b-256 checksum How to use checksums |
062f11b168eb9a71762f12dc7fff292d5f28c839cd058b825ace3eeba0257dd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for imgpy 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.