Spaces:
Running
Running
oops backwards
Browse files
app.py
CHANGED
|
@@ -51,10 +51,10 @@ def overlay_png_on_side_by_side_images(
|
|
| 51 |
png_img = Image.open(overlay_image_path).convert("RGBA")
|
| 52 |
|
| 53 |
# Determine a common height for side-by-side images
|
| 54 |
-
min_height =
|
| 55 |
# Resize images to the common height, maintaining aspect ratio
|
| 56 |
-
img1 = img1.resize((
|
| 57 |
-
img2 = img2.resize((
|
| 58 |
combined_width = img1.width + img2.width
|
| 59 |
# Create a blank canvas for the combined image
|
| 60 |
|
|
|
|
| 51 |
png_img = Image.open(overlay_image_path).convert("RGBA")
|
| 52 |
|
| 53 |
# Determine a common height for side-by-side images
|
| 54 |
+
min_height = 3600
|
| 55 |
# Resize images to the common height, maintaining aspect ratio
|
| 56 |
+
img1 = img1.resize((2700, 3600), Image.LANCZOS)
|
| 57 |
+
img2 = img2.resize((2700, 3600), Image.LANCZOS)
|
| 58 |
combined_width = img1.width + img2.width
|
| 59 |
# Create a blank canvas for the combined image
|
| 60 |
|