Skip to content

Commit b6d1262

Browse files
authored
Create Expand_An_Image.py
1 parent 98b4a25 commit b6d1262

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Expand_An_Image.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from PIL import Image, ImageOps
2+
3+
# creating a image1 object
4+
orginal = Image.open(r"C:\Users\Belgin\Desktop\github.png")
5+
6+
# applying expand method
7+
# using border value = 20
8+
# using fill = 50 which is brown type color
9+
10+
expanded_image = ImageOps.expand(orginal, border = 20, fill = 50)
11+
12+
expanded_image.show()

0 commit comments

Comments
 (0)