Skip to content

Commit 57460b8

Browse files
authored
Create GrayScale_Filter_An_Image.py
1 parent d0b843c commit 57460b8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

GrayScale_Filter_An_Image.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# GrayScale Filter An Image
2+
from PIL import Image, ImageFilter
3+
4+
# creating a image object
5+
orginal = Image.open(r"C:\Users\Belgin\Desktop\github.png")
6+
7+
# Grayscale The Image
8+
# Where "L" stands for 'luminous'.
9+
grayscaled_Image = orginal.convert('L')
10+
11+
grayscaled_Image.show()

0 commit comments

Comments
 (0)