From 2db9293e0ce4e3a6449f8d9394a4dfd107d71dac Mon Sep 17 00:00:00 2001 From: rmcintosh Date: Mon, 1 May 2023 13:03:42 -0400 Subject: [PATCH 1/2] fix: add compression to logo when rendering in JPG format during PDF generation --- .../manager/src/features/Billing/PdfGenerator/PdfGenerator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/manager/src/features/Billing/PdfGenerator/PdfGenerator.ts b/packages/manager/src/features/Billing/PdfGenerator/PdfGenerator.ts index 9b1fae46149..2b1fee400d2 100644 --- a/packages/manager/src/features/Billing/PdfGenerator/PdfGenerator.ts +++ b/packages/manager/src/features/Billing/PdfGenerator/PdfGenerator.ts @@ -219,7 +219,7 @@ export const printInvoice = ( // Create a separate page for each set of invoice items itemsChunks.forEach((itemsChunk, index) => { - doc.addImage(AkamaiLogo, 'JPEG', 160, 10, 120, 40); + doc.addImage(AkamaiLogo, 'JPEG', 160, 10, 120, 40, undefined, "MEDIUM"); const leftHeaderYPosition = addLeftHeader( doc, @@ -277,7 +277,7 @@ export const printPayment = ( }); doc.setFontSize(10); - doc.addImage(AkamaiLogo, 'JPEG', 160, 10, 120, 40); + doc.addImage(AkamaiLogo, 'JPEG', 160, 10, 120, 40, undefined, "MEDIUM"); const leftHeaderYPosition = addLeftHeader( doc, From 71ccac88f7f722b6d8cb82aa8695c2e16e44d121 Mon Sep 17 00:00:00 2001 From: mjac0bs Date: Mon, 1 May 2023 13:29:18 -0700 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4e4b71b4f3..af240a6f65f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p - Prevent form submission unless action was taken (IP transfer & IP sharing modals) #5976 - Recycle LKE Node confirmation dialog gets dismissed upon submission #9054 - Inability to edit and save Linode Configurations #9053 +- Excessively large file size for invoices due to uncompressed JPG logo #9069 ### Tech Stories: