-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: main
Are you sure you want to change the base?
Update dependencies #315
Conversation
9d4c165
to
40a69b7
Compare
internal/service/worker.go
Outdated
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why 96?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
60f9fe8
to
c07a7d2
Compare
Update lazypdf dependecy and bump Go version to 1.22.4. Issue: CW-608
c07a7d2
to
a81bd99
Compare
Update lazypdf dependecy and bump Go version to 1.22.4.
Issue: CW-608