Skip to content

Commit 99a2f82

Browse files
authored
Add files via upload
1 parent 2a5de36 commit 99a2f82

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import PIL
2+
from PIL import Image
3+
4+
mywidth=3278 #width of the image to be obtained
5+
myheight=4917 #height of the image to be obtained
6+
7+
#opening the image
8+
img=Image.open('cute_dog.jpg')
9+
#resizing the image
10+
img=img.resize((mywidth,myheight),PIL.Image.ANTIALIAS)
11+
#saving the image
12+
img.save('resize.jpg')

0 commit comments

Comments
 (0)