Skip to main content

Package provides function for rather neat 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

fill_image_resize

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')

Requirements

Pillow >= 7.0.0

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-1.1.1.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

fill_image_resize-1.1.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file fill-image-resize-1.1.1.tar.gz.

File metadata

  • Download URL: fill-image-resize-1.1.1.tar.gz
  • Upload date:
  • Size: 15.1 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.2 CPython/3.9.7

File hashes

Hashes for fill-image-resize-1.1.1.tar.gz
Algorithm Hash digest
SHA256 50710991fe4329737c62dc4bda5229d9ede80599e60d57c1ca908656f4cffada
MD5 ba844993c4fe17fbdfb73c6f13cc7480
BLAKE2b-256 236334c36150a414163da96bc7924c4703979b1e2905b6391a2075396c56e084

See more details on using hashes here.

File details

Details for the file fill_image_resize-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: fill_image_resize-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.5 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.2 CPython/3.9.7

File hashes

Hashes for fill_image_resize-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 78216bc0ccd036966c1ca6b0608fb086014352b35de170c4e43f64fae7ea8dc9
MD5 de8a6dd8b1f65d39d51cdadb0f2f282c
BLAKE2b-256 0f0e8bbc90ddd6866c9abf1d3eaec371c455b46301c08d0e27d2c2e2f9d91146

See more details on using hashes here.

Supported by

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