Resize and crop an image to fit the specified size.
Project description
Resize and Crop
Description
Resize and crop an image to fit the specified size.
Installation
pip install resize-and-crop
or
pipenv install resize-and-crop
Methods
- resize_and_crop(path, size, crop_origin) - Resize the image located at path, into the size specified, cropping the image starting at the crop_origin.
Usage
from resize_and_crop import resize_and_crop
image = resize_and_crop("/path/to/image", (200,200), "middle")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
resize_and_crop-0.1.0.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for resize_and_crop-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83756f15a83e4b451192f0878068cbfb6c4d087e02ca66ee0e9045c2b3ab1df9 |
|
MD5 | dc3f419044d8164fd2580ae236a88f8f |
|
BLAKE2b-256 | 437922efb59299947888510b07a0fd94cd2a5b0d7477a795678db26693d94463 |