Answers for "pillow show image"

2

pil resize image

im = Image.open('image.jpg')  
im = im.resize((w, h))
Posted by: Guest on October-17-2020
1

python display image

from PIL import Image, ImageFilter  # importing the image

#Image -1 DLC3 with Blur filter
img1 = Image.open('dlc3.jpg')
filtered_img1 = img1.filter(ImageFilter.BLUR)
filtered_img1.save('Blurdlc3.png')

#Image -2 DYONISOS with Smooth filter
img2 = Image.open('dyonisos.jpg')
filtered_img2 = img2.filter(ImageFilter.SMOOTH)
filtered_img2.save('dyonisossmooth.png')

#Image - 3 SHARK with convert and rotate properties
img3 = Image.open('shark.jpg')
filtered_img3 = img3.convert('L')
filtered_img3.rotate(180)
filtered_img3.save('Shark.jpg')
Posted by: Guest on June-16-2020
0

save imag epillow

im.save(file + ".thumbnail", "JPEG")
Posted by: Guest on January-04-2021
0

pil python image

from PIL import Image
im = Image.open("bride.jpg")
im.rotate(45).show()
Posted by: Guest on March-23-2021

Python Answers by Framework

Browse Popular Code Answers by Language