Skip to main content

Returns a PIL Image object of instagram compatible aspect ratio when supplied with an image URL or an image object.

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.2.tar.gz (14.8 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.2-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file instaresizer-0.0.2.tar.gz.

File metadata

  • Download URL: instaresizer-0.0.2.tar.gz
  • Upload date:
  • Size: 14.8 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.2.tar.gz
Algorithm Hash digest
SHA256 6414e86a23ece2c0b5b523884efdd8245a8976e93e3d86112fff54ba215625ee
MD5 137cbcbad80a44216e3ac5471cc132f7
BLAKE2b-256 766bcd9054a4c63a681ef6a2f43b20af75fc648502ae04e95926a132e1667ef9

See more details on using hashes here.

File details

Details for the file instaresizer-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: instaresizer-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 03fccd68003bbc7f14f81172fa38d38fc086afc6030eae87ae34100bc89c5316
MD5 b8d980fbe806a51b8dfa29104b4f2f6e
BLAKE2b-256 ccd9ad303d44d2023335230440cc0e1c069156e5708e2808fdc110b29c1ee6c0

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