How to resize an image
Contents
[
Hide
]
How to resize an image
Resize with resizing type
To resize an image, load your image with method Load of the Python class Image. Then you can apply the Resize method with specifying height and width (`300x300` px) and selecting the resizing type `LANCZOS_RESAMPLE`.
Example Python code:
Several resize types are available for resizing photos. Please refer to the table with descriptions of Resize type parameters.
Proportional resizing
Also, you can use proportional resizing and specify only desired picture width or height: