Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -445,10 +445,10 @@ class CertificateGenerator:
|
|
| 445 |
# Paste the photo
|
| 446 |
certificate.paste(output, position, mask=output)
|
| 447 |
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
|
| 453 |
def generate(
|
| 454 |
self,
|
|
|
|
| 445 |
# Paste the photo
|
| 446 |
certificate.paste(output, position, mask=output)
|
| 447 |
|
| 448 |
+
except Exception as e:
|
| 449 |
+
print(f"Error adding photo: {str(e)}")
|
| 450 |
+
print(f"Photo path: {photo_path}")
|
| 451 |
+
print(f"Photo details: {getattr(photo, 'size', 'unknown size')}, {getattr(photo, 'mode', 'unknown mode')}")
|
| 452 |
|
| 453 |
def generate(
|
| 454 |
self,
|