Package provedis function for rather neet image resizing (like Fill resize in Figma)
Project description
Package overview
This package is dedicated to solve problem of resizing images from one size and aspect ration to another in fancier way. This was inspired by Figma, where you can resize image using "Fill" type, so that image is not stretched.
What happenes
How to use
from fill-image-resize import resize
path = 'image.png'
desired_width = 1020
desired_height = 1000
resized_image = resize(path, desired_width, desired_height)
resized_image.save('resized_image.png')
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
fill-image-resize-0.1.tar.gz
(14.3 kB
view details)
Built Distribution
File details
Details for the file fill-image-resize-0.1.tar.gz
.
File metadata
- Download URL: fill-image-resize-0.1.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 578ec03bedef9caee3d0349cd19d334ca07cd3be12303018133dafbb0534f5da |
|
MD5 | 48ce07230cbcf9de250f1dec4d99ca88 |
|
BLAKE2b-256 | e2cc0a4034f683082ace6fb2669af0ed967776c5d755ab136f1a85801c58a031 |
File details
Details for the file fill_image_resize-0.1-py3-none-any.whl
.
File metadata
- Download URL: fill_image_resize-0.1-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd35ec896ab1a15b7960cc38ea38ee304a882cbed796478e08e8e81d1a4ecfd5 |
|
MD5 | 3f94a560aab61078843b6fe264e85876 |
|
BLAKE2b-256 | 980d51bad25cd38ea0269b7ded18d63841a98a84ff218a657a2302aa29f06540 |