Switch to Gemini + update requirements
Browse files- app.py +3 -1
- uploads/upload_1757548711.png +3 -0
- uploads/upload_1757548826.png +3 -0
app.py
CHANGED
|
@@ -105,11 +105,13 @@ def process_image(input_img, bg_choice, bg_upload, logo_upload, logo_transparenc
|
|
| 105 |
"Center": ((result.width - logo.width) // 2, (result.height - logo.height) // 2),
|
| 106 |
}
|
| 107 |
result.paste(logo, pos_map[logo_position], logo)
|
| 108 |
-
|
|
|
|
| 109 |
# Apply brand colour tint
|
| 110 |
if brand_color:
|
| 111 |
tint = Image.new("RGBA", result.size, brand_color + "20")
|
| 112 |
result = Image.alpha_composite(result, tint)
|
|
|
|
| 113 |
|
| 114 |
timestamp = datetime.now().strftime("%Y%m%d%H%M%S")
|
| 115 |
result_path = os.path.join(RESULTS_DIR, f"result_{timestamp}.png")
|
|
|
|
| 105 |
"Center": ((result.width - logo.width) // 2, (result.height - logo.height) // 2),
|
| 106 |
}
|
| 107 |
result.paste(logo, pos_map[logo_position], logo)
|
| 108 |
+
|
| 109 |
+
'''
|
| 110 |
# Apply brand colour tint
|
| 111 |
if brand_color:
|
| 112 |
tint = Image.new("RGBA", result.size, brand_color + "20")
|
| 113 |
result = Image.alpha_composite(result, tint)
|
| 114 |
+
'''
|
| 115 |
|
| 116 |
timestamp = datetime.now().strftime("%Y%m%d%H%M%S")
|
| 117 |
result_path = os.path.join(RESULTS_DIR, f"result_{timestamp}.png")
|
uploads/upload_1757548711.png
ADDED
|
Git LFS Details
|
uploads/upload_1757548826.png
ADDED
|
Git LFS Details
|