osteele / osteele/scrollshot2pdf

Page Splits Across "Low Density" Content

Open
#1 0 comments 0 reactions 1 assignee View on GitHub

@osteele is already working on this.

Since Apr 25, 2025.

Dominant language
Python
Stars
8
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Pages may be split where there are fewer, non-blank pixels, broadly distributed across the horizontal line. For example, on music scores pages are often split across the middle of the grand staff where the non-blank content of the horizontal line may be just the vertical slice of the bracket on the left side of the page and a few, thin, vertical measure dividing lines through the rest of the scanned line. Similarly, tops or bottoms of the staves may include arcs, indicating phrases, ties, or slurs. These arcs may appear as only two, small marks on the scanned vertical line, yet it would be preferable to avoid splitting the page across them.

Can the sensitivity of the content gap identifier be adjusted, ideally as a command line argument, to provide for better identification of thinly distributed content?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.