Skip to main content

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

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

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

Uploaded Source

Built Distribution

fill_image_resize-0.2.1-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fill-image-resize-0.2.1.tar.gz
  • Upload date:
  • Size: 14.4 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-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9ccad6f1b677e8a6e21501373608e5e1e54b0714f5026cce0f9c184d7c57811b
MD5 0a39ce688254c74619620d2178a9aea3
BLAKE2b-256 264a47bd08d03adb8cd4b7b536be3698326ffb6dddd7f82891df76b27242f089

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fill_image_resize-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 14.7 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-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 418002b109a4f016a95c41d91af7c6b9ba329374a0bb622863609a6a3d857941
MD5 cc82d9c288c675067aeac0f6c2695beb
BLAKE2b-256 16aea41d3e48a1d7ad6f7953ed83a67b00a42426cc9bff2e67cf1f4f81220991

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