hello, guys in this video I am gonna teach you how to crop an image using the python pillow library.
pillow tutorial playlist- • pillow playlist
Tkinter GUI playlist - • tkinter tutorial
Code -
#impoting pillow library
from PIL import Image
#opening a image
img = Image.open('aa79264f49aae4d4b2d77f0abdeb16fc.jpg')
getting the size of image
img_info = img.size
#printing image size
print(img_info)
showing image
img_s = img.show()
#croping image
img_crop= img.crop((100,30,300,300))
showing croped image
img_crp = img_crop.show()
#saving cropped Image
img_s = img_crop.save('lionface.jpg')
En esta página del sitio puede ver el video en línea how to crop a image using python (python pillow tutorial #3) de Duración hora minuto segunda en buena calidad , que subió el usuario Aaditya 22 diciembre 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,105 veces y le gustó 12 a los espectadores. Disfruta viendo!