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 all 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 @@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Kubernetes Delete Dialog clears when it is re-opened #9000
- HTML showing up in event messages #9003
- Inability to edit and save Linode Configurations #9053
- Excessively large file size for invoices due to uncompressed JPG logo #9069
- Marketplace One Click Cluster UDF caching issue #8997
- Prevent IP transfer & sharing modals form submission if no action selected #9026
- Increase radio button padding to fix hover effect shape #9031
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