Skip to content

fix(deps): update module github.com/go-pdfkit/ops to v0.8.0 - #11

Merged
tannevaled merged 1 commit into
mainfrom
renovate/fleet
Aug 30, 2026
Merged

fix(deps): update module github.com/go-pdfkit/ops to v0.8.0#11
tannevaled merged 1 commit into
mainfrom
renovate/fleet

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/go-pdfkit/ops v0.7.2v0.8.0 age confidence

Release Notes

go-pdfkit/ops (github.com/go-pdfkit/ops)

v0.8.0: — a page made of a picture

Compare Source

Doc.Picture makes 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.

dpi says 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 vet and -race clean, nine cross-compile targets, CGO-free.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

@tannevaled
tannevaled merged commit 20d662b into main Aug 30, 2026
1 check passed
@tannevaled
tannevaled deleted the renovate/fleet branch August 30, 2026 09:21
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.

1 participant