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

Update dependencies #315

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update dependencies #315

wants to merge 1 commit into from

Conversation

diegobernardes
Copy link
Contributor

Update lazypdf dependecy and bump Go version to 1.22.4.

Issue: CW-608

@diegobernardes diegobernardes requested a review from a team as a code owner June 6, 2024 11:58
@diegobernardes diegobernardes force-pushed the update-dependencies branch 2 times, most recently from 9d4c165 to 40a69b7 Compare June 6, 2024 14:13
@@ -95,7 +95,7 @@ func (w *Worker) Process(
}

storage := bytes.NewBuffer([]byte{})
err = lazypdf.SaveToPNG(ctx, uint16(page), uint16(width), scale, bytes.NewBuffer(payload), storage)
err = lazypdf.SaveToPNG(ctx, uint16(page), uint16(width), scale, 96, bytes.NewBuffer(payload), storage)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why 96?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I miss so much named arguments in Go 😞. 96 is the DPI we're using now to render the PDF.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we move it to value and put a comment near it why 96?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or at least make it clear in the commit message why 96

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@diegobernardes diegobernardes force-pushed the update-dependencies branch 2 times, most recently from 60f9fe8 to c07a7d2 Compare June 6, 2024 14:34
Update lazypdf dependecy and bump Go version to 1.22.4.

Issue: CW-608
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants