Methods to manipulate images
Project description
# PyCrop
1. What it does
2. functions
1. Contain
2. Cover
3. Installation
## What it does
Methods to manipulate images
## Functions
### 1.Cover
- params:
- path:str - image absolute path
- size:list - output image size (width:int, height:int)
- point:list - point from where image is cropped and resized
- savepath:str - image destination path
- quality:int - output image quality (from 0 to 100%)
- returns:
- (resize status, output image path):tuple
Based on size, it will crop evenly distributed rectagle from point coordinates (in percentage).
### 2.Contain
- params:
- path:str - image absolute path
- size:list - output image size (width:int, height:int)
- savepath:str - image destination path
- quality:int - output image quality (from 0 to 100%)
- returns:
- (resize status, output image path):tuple
Function will fit source image in rectagle which has same dimensions as size.
## Installation
To install the package by `pip` run following command
```sh
$ pip install pycrop
```
or
```sh
$ pip install git+https://github.com/giorgi94/pycrop.git
```
1. What it does
2. functions
1. Contain
2. Cover
3. Installation
## What it does
Methods to manipulate images
## Functions
### 1.Cover
- params:
- path:str - image absolute path
- size:list - output image size (width:int, height:int)
- point:list - point from where image is cropped and resized
- savepath:str - image destination path
- quality:int - output image quality (from 0 to 100%)
- returns:
- (resize status, output image path):tuple
Based on size, it will crop evenly distributed rectagle from point coordinates (in percentage).
### 2.Contain
- params:
- path:str - image absolute path
- size:list - output image size (width:int, height:int)
- savepath:str - image destination path
- quality:int - output image quality (from 0 to 100%)
- returns:
- (resize status, output image path):tuple
Function will fit source image in rectagle which has same dimensions as size.
## Installation
To install the package by `pip` run following command
```sh
$ pip install pycrop
```
or
```sh
$ pip install git+https://github.com/giorgi94/pycrop.git
```
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
pycrop-1.0.1.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycrop-1.0.1.tar.gz.
File metadata
- Download URL: pycrop-1.0.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89a1a9c52cf4a13cba7c3c17e7467584f936a5c72ac2f30c0c0f2b7e2be0b0ab
|
|
| MD5 |
b59a421814e6fa0b9e1ff40416e13c2c
|
|
| BLAKE2b-256 |
879f1c84332d9ace42c5243267ed09b37d0f6d7fc512555084cc21bfb6dc26b8
|
File details
Details for the file pycrop-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pycrop-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24bd9383957def8f1b506f1ec9ed5afe8cf93ee92d86d83b1c319390a17b01d9
|
|
| MD5 |
4aacd14dfc1630876dc0cbf8b3b43445
|
|
| BLAKE2b-256 |
d9e831e43dd3bc41fa82e15a9f845dd64dba07666ffdc7e59c09f60457323dd4
|