Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -436,13 +436,8 @@ class CertificateGenerator:
|
|
436 |
|
437 |
# Adjusted position - moved down from top
|
438 |
photo_x = certificate.width - size[0] - 60 # 60px from right
|
439 |
-
photo_y =
|
440 |
-
|
441 |
-
# Add subtle shadow effect (optional)
|
442 |
-
shadow = Image.new('RGBA', size, (0, 0, 0, 60)) # Semi-transparent black
|
443 |
-
shadow_mask = mask.filter(ImageFilter.GaussianBlur(3)) # Blur the mask for soft shadow
|
444 |
-
certificate.paste(shadow, (photo_x + 2, photo_y + 2), mask=shadow_mask) # Offset shadow slightly
|
445 |
-
|
446 |
# Add white background circle
|
447 |
bg = Image.new('RGBA', size, (255, 255, 255, 255))
|
448 |
certificate.paste(bg, (photo_x, photo_y), mask=mask)
|
|
|
436 |
|
437 |
# Adjusted position - moved down from top
|
438 |
photo_x = certificate.width - size[0] - 60 # 60px from right
|
439 |
+
photo_y = 50 # Increased from 40 to 50px from top
|
440 |
+
|
|
|
|
|
|
|
|
|
|
|
441 |
# Add white background circle
|
442 |
bg = Image.new('RGBA', size, (255, 255, 255, 255))
|
443 |
certificate.paste(bg, (photo_x, photo_y), mask=mask)
|