Python Working with Images using Pillow

preview_player
Показать описание
In this Python programming tutorial we will go over how to work with images using the pillow package. We will go over how to resize, rotate, create a mirror image, add a border, crop, paste, brighten, add effect filters, overlay shapes, change colors, create a composite image, and blend images together.

Pillow Package Information - 00:16
Import Modules - 00:46
Open Image and Get Information - 01:02
Resize Multiple Images - 02:24
Rotate Image - 04:26
Create Mirror Image - 04:54
Flip Image - 05:32
Overlay Shape onto Image - 05:46
Add Border to Image - 07:54
Crop Image - 08:34
Paste Image - 10:54
Adjust Brightness - 12:22
Add Effect Filters - 13:23
Change Colors - 14:15
Create Composite of Images - 16:45
Blend Images Together - 19:46
Рекомендации по теме
Комментарии
Автор

amazing intro to pillow you're amazing!

teddyverdecia
Автор

Awesome tutorial, thanks. Also, could you share the notebook?

HK.on.YouTube
Автор

First, thanks for making this tutorial; it's a great intro to using Pillow! One comment and one question:

1) For cropping at ~10:04, it might be more clear to label them something like 'left_X, upper_Y, right_X, and lower_Y, ' or maybe 'left_wall, ceiling, right_wall, and floor.' It took me a few seconds to figure out you were indicating limits and not actual X, Y coord pairs. Just a thought.

2) At ~ 16:00, why doesn't changing the 'rgb' values change the entire picture instead of just the center of the flower?

Thanks again!

dp
Автор

for changing colors at 15:04, the line
r, g, b = flower.split()
I am getting error 'too many values to unpack (expected 3)'. Why such?

anushansharao
Автор

Paste Image - 10:54 work with png transparent background?

gabrielmozz
Автор

How do I add text and how to make it have multiple lines? When I add text it is exceeding the size of the canvas.

sidharthpunathil