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

Uploaded Source

Built Distribution

fill_image_resize-1.0.1-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fill-image-resize-1.0.1.tar.gz
  • Upload date:
  • Size: 15.0 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.22.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.5

File hashes

Hashes for fill-image-resize-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c7844dc5a35bc210cd2ad56d874058959b6fa6aad2d4cde3c62b597fc8b6c1ce
MD5 6fb5770e38bcf4c72139011873cca457
BLAKE2b-256 c29ebcfcd673eb9e59211605bf148b444621cef902bd93ee67f8a4ec582c1d11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fill_image_resize-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.3 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.22.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.5

File hashes

Hashes for fill_image_resize-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d3b3fa3e13ecf09acaa64b770ca59a094f6fb0b7bb93c07f2b11d1423cf053c
MD5 943af183d23c7b4ac86a9cfd4ece5796
BLAKE2b-256 7a5355613bc1a3d83878f2798e855845b1ca8274d4eb51085af1db6912a351e0

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