2948 explained code solutions for 75 technologies


python-pillowPillow usage example


from PIL import Image, ImageOps

im = Image.open('/var/www/examples/heroine.png')

im = im.resize((200, 300))
im.show()ctrl + c
PIL

import Pillow package modules

Image.open

open given image with Pillow

/var/www/examples/heroine.png

path to sample image to open

.resize(

resizes given image to the specified size

.show()

displays resulting image