Spaces:
No application file
No application file
Felixogunwale
commited on
Commit
•
611a175
1
Parent(s):
278ed4f
Update crop.py
Browse files
crop.py
CHANGED
@@ -13,7 +13,7 @@ from PIL import Image
|
|
13 |
|
14 |
|
15 |
def crop():
|
16 |
-
img = Image.open("image.
|
17 |
|
18 |
if img.height > 300 or img.width > 300: #get the height and width of the image
|
19 |
output_size = (900, 900) #crop the image to the output size
|
|
|
13 |
|
14 |
|
15 |
def crop():
|
16 |
+
img = Image.open("image.png") #process the image
|
17 |
|
18 |
if img.height > 300 or img.width > 300: #get the height and width of the image
|
19 |
output_size = (900, 900) #crop the image to the output size
|