Returns a PIL Image object of instagram compatible aspect ratio when supplied with an image URL.
Project description
Instasize-1.0
Description
Takes in an image URL as an argument and returns PIL image object which resizes the original image to optimally fit instagram supported aspect ratio.
Usage
Installation
pip install instaresizer
Example
- Importing the library
#!/usr/bin/env python3
from instaresizer import instasize
- Usage - resizing remote image file supplied via a URL.
image_url = 'https://s3.amazonaws.com/images.seroundtable.com/30th-anniversary-of-the-world-wide-web-google-1552390014.gif'
img = instasize.resize_remote(image_url)
img.save('resized_file.png', '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
instaresizer-0.0.1.tar.gz
(14.7 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 instaresizer-0.0.1.tar.gz.
File metadata
- Download URL: instaresizer-0.0.1.tar.gz
- Upload date:
- Size: 14.7 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.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
807095ca56c9929e707243cca425c0dca1c4e6a882110fe4482cefff9c7e3b0a
|
|
| MD5 |
386a48ee2b7d8e18a1f8a632c5f417a6
|
|
| BLAKE2b-256 |
44d5cb0233cb25f9b95ccc49b399504818d93b3ceaf9179a210c283ea9142bb7
|
File details
Details for the file instaresizer-0.0.1-py3-none-any.whl.
File metadata
- Download URL: instaresizer-0.0.1-py3-none-any.whl
- Upload date:
- Size: 14.8 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.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6abb8c24bc8098a026678bb7b218d23c9afd829f3b83c9520900007c1dcef300
|
|
| MD5 |
31ca4619accaa421be4e3441c79a7bb5
|
|
| BLAKE2b-256 |
0ad72d78782db4e7719739ce3f6292ab57c0559bff8c5725b033f9829b191257
|