Skip to main content

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
  1. Importing the library
#!/usr/bin/env python3

from instaresizer import instasize

  1. 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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

instaresizer-0.0.1-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

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

Hashes for instaresizer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 807095ca56c9929e707243cca425c0dca1c4e6a882110fe4482cefff9c7e3b0a
MD5 386a48ee2b7d8e18a1f8a632c5f417a6
BLAKE2b-256 44d5cb0233cb25f9b95ccc49b399504818d93b3ceaf9179a210c283ea9142bb7

See more details on using hashes here.

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

Hashes for instaresizer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6abb8c24bc8098a026678bb7b218d23c9afd829f3b83c9520900007c1dcef300
MD5 31ca4619accaa421be4e3441c79a7bb5
BLAKE2b-256 0ad72d78782db4e7719739ce3f6292ab57c0559bff8c5725b033f9829b191257

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page