Skip to content

deps: read the ink layer of a scanned page - #13

Closed
tannevaled wants to merge 1 commit into
mainfrom
render-v0.14.0
Closed

deps: read the ink layer of a scanned page#13
tannevaled wants to merge 1 commit into
mainfrom
render-v0.14.0

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

Three renderer releases had landed and none had reached the app, so none of this was in front of anyone.

render v0.12.0 a scanned page's JPEG 2000 background is drawn
render v0.13.0 a mask that cannot be read takes its image with it, instead of the ink layer being painted over the page as a solid dark rectangle
render v0.14.0 JBIG2 is decoded, so the ink layer has its shape; and the stencil mask is no longer applied inside out, which had every explicit mask showing the exact complement of itself
gfx v0.13.0 JBIG2 in the codec registry

Measured against poppler, first page of 25 medical scans:

before after
mean differing pixels 0.0083 0.0004
worst page 0.1087 0.0004
improved / unchanged / worse 11 / 14 / 0

100% statement coverage, wasm build, go vet on four targets.

🤖 Generated with Claude Code

render v0.11.0 -> v0.14.0, gfx v0.10.0 -> v0.13.0. Three releases had landed
and none of them had reached the app, so none of this was in front of anyone:

  render v0.12.0  a scanned page's JPEG 2000 background is drawn
  render v0.13.0  a mask that cannot be read takes its image with it, instead
                  of the ink layer being painted over the page as a solid dark
                  rectangle
  render v0.14.0  JBIG2 is decoded, so the ink layer has its shape; and the
                  stencil mask is no longer applied inside out, which had every
                  explicit mask showing the exact complement of itself
  gfx    v0.13.0  JBIG2 in the codec registry

Measured against poppler on the first page of 25 medical scans, the mean share
of differing pixels goes 0.0083 -> 0.0004 and the worst page 0.1087 -> 0.0004,
with 11 pages improved and none made worse.

100% statement coverage, wasm build, vet on four targets.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@tannevaled

Copy link
Copy Markdown
Contributor Author

Superseded by #14, which goes to render v0.19.0 and fixes the browser check that could not see a scanned page arrive.

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