Invoice rendering: Remove logos from transparency

This commit is contained in:
Raphael Michel
2025-01-17 17:27:33 +01:00
parent ecd0cbe00d
commit eeae05773e
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -388,6 +388,11 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer):
except:
logger.exception("Can not resize image")
pass
try:
ir.remove_transparency()
except:
logger.exception("Can not remove transparency from logo")
pass
canvas.drawImage(ir,
self.logo_left,
self.pagesize[1] - self.logo_height - self.logo_top,