Update app.py
Browse files
app.py
CHANGED
|
@@ -440,7 +440,7 @@ class CertificateGenerator:
|
|
| 440 |
try:
|
| 441 |
logo = Image.open(logo_path)
|
| 442 |
# Resize logo to appropriate size
|
| 443 |
-
logo.thumbnail((
|
| 444 |
# Position in top-left corner with padding
|
| 445 |
certificate.paste(logo, (60, 50), mask=logo if 'A' in logo.getbands() else None)
|
| 446 |
except Exception as e:
|
|
|
|
| 440 |
try:
|
| 441 |
logo = Image.open(logo_path)
|
| 442 |
# Resize logo to appropriate size
|
| 443 |
+
logo.thumbnail((250, 120))
|
| 444 |
# Position in top-left corner with padding
|
| 445 |
certificate.paste(logo, (60, 50), mask=logo if 'A' in logo.getbands() else None)
|
| 446 |
except Exception as e:
|