We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98b4a25 commit b6d1262Copy full SHA for b6d1262
Expand_An_Image.py
@@ -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