Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def resize_img(img1,img2):
|
|
37 |
img_target_size = Image.open(img1)
|
38 |
img_to_resize = resize_and_crop(
|
39 |
img2,
|
40 |
-
(
|
41 |
crop_origin="middle"
|
42 |
)
|
43 |
img_to_resize.save('resized_img2.png')
|
|
|
37 |
img_target_size = Image.open(img1)
|
38 |
img_to_resize = resize_and_crop(
|
39 |
img2,
|
40 |
+
(img_target_size.size[0],img_target_size.size[1]), #set width and height to match img1
|
41 |
crop_origin="middle"
|
42 |
)
|
43 |
img_to_resize.save('resized_img2.png')
|