Commit
•
a43ba57
1
Parent(s):
dbd1567
Update app.py
Browse files
app.py
CHANGED
@@ -348,7 +348,7 @@ def generate_certificate(certificate_model, first_name, last_name):
|
|
348 |
rgb = Image.new('RGB', im.size, (255, 255, 255)) # white background
|
349 |
rgb.paste(rgba, mask=rgba.split()[3]) # 3 is the alpha channel
|
350 |
pdf_ = rgb.save("certificate.pdf", 'PDF', save_all = True, resolution=100.0)
|
351 |
-
pdf__ = im.save("certificate.
|
352 |
print("RGB", rgb)
|
353 |
print("PDF", pdf_)
|
354 |
print("PDF", pdf__)
|
|
|
348 |
rgb = Image.new('RGB', im.size, (255, 255, 255)) # white background
|
349 |
rgb.paste(rgba, mask=rgba.split()[3]) # 3 is the alpha channel
|
350 |
pdf_ = rgb.save("certificate.pdf", 'PDF', save_all = True, resolution=100.0)
|
351 |
+
pdf__ = im.save("certificate.png")
|
352 |
print("RGB", rgb)
|
353 |
print("PDF", pdf_)
|
354 |
print("PDF", pdf__)
|