![]() |
VOOZH | about |
Python Imaging Library (expansion of PIL) is the de facto image processing package for the Python language. It incorporates lightweight image processing tools that aid in editing, creating, and saving images. This module is not preloaded with Python. So to install it execute the following command in the command-line:
pip install pillow
To change the ratio of height and width we will add or subtract any random value from them.
Example:
Image Used:
👁 ImageOutput:
Ratio before conversion: 1.0 Ratio after conversion: 1.25
Output Image:
👁 Image