fix(deps): update module github.com/go-pdfkit/ops to v0.8.0 - #11
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.7.2→v0.8.0Release Notes
go-pdfkit/ops (github.com/go-pdfkit/ops)
v0.8.0: — a page made of a pictureCompare Source
Doc.Picturemakes a page of an image: the other half of drawing a page. A scanner, a camera and a screenshot all produce a picture, and what people want of a PDF toolkit is to be handed one back with the picture in it.It takes every format go-gfx/gfx reads, which is more than a PDF can carry. A JPEG goes in as it stands — a PDF carries JPEG, and re-encoding one loses a little of it for nothing; everything else is decoded and written as compressed samples.
Transparency becomes a soft mask. Dropping the alpha channel instead puts the colour that was under the transparency on the page, so a PNG with a clear background comes out with black behind it.
dpisays how many of the image's pixels go into an inch of paper: a photograph from a telephone at 72 is a page the size of a wall, and at 300 it is a photograph.A picture of no size is refused, and writing that test found the hole it closes: GIF, BMP and JPEG all decode a zero-by-zero image without complaining — such a file is not malformed, it is empty — and the check was on the path that decodes rather than on the one that only measures.
Judged by poppler rather than by ourselves: it reads the files, lists the picture at the right size, carries the JPEG as
jpeg, and renders the halves the right way round, the transparent half over white.100% statement coverage,
go vetand-raceclean, nine cross-compile targets, CGO-free.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.