Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [M3-6022] - Add compression to logo when rendering in JPG format during invoice PDF generation #9069

Merged
merged 3 commits into from
May 2, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down