Concept

Resizing Images (Pillow)

Image instances have a resize() function which accepts a tuple that contains the desired width and height. Optionally, a resample filter to be applied to the image and a 4-tuple bounding box that provides a specific region of the image to scale can be passed as arguments.

size = (newwidth, newheight) image.resize(size, resample=None, box=None)

0

1

Updated 2021-08-14

Contributors are:

Who are from:

Tags

Python Programming Language

Data Science

Learn After