Skip to main content

j-stitch

Scrolling screenshot stitching for Python, implemented in Rust.

Finds the vertical overlap between two consecutive screenshots by hashing each pixel row and running a longest-common-substring match over the hash sequences, then splices the images. Optionally detects whether the second image belongs above or below the first.

The distribution is j-stitch; the module imports as longstitch.

import longstitch

result = longstitch.stitch(png_bytes_1, png_bytes_2)
if result is None:
    print("the two images do not overlap")
else:
    open("stitched.png", "wb").write(result.png)

stitch() returns None when no overlap is found -- that is a legitimate outcome, not a failure. Decode and encode failures raise longstitch.StitchError.

Windows x86_64, CPython 3.11+ (abi3). Part of jietuba. MIT licensed.

Release files for j-stitch 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for j-stitch 0.4.0
File Interpreter ABI Platform
j_stitch-0.4.0-cp311-abi3-win_arm64.whl CPython 3.11 abi3 Windows ARM64 Details
j_stitch-0.4.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details

Total release size: 1.7 MB

Release files / j_stitch-0.4.0-cp311-abi3-win_arm64.whl

Download URL j_stitch-0.4.0-cp311-abi3-win_arm64.whl
Size 815.3 kB
Tags CPython 3.11 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
98415c1d3110ba889b6c6141ffa7d5fdb3ec52789b81047c59d2c233eb3c24f4
BLAKE2b-256 checksum
How to use checksums
33376a68b8e153def860d788f189297c038411c132ef771c00201a0322c198ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / j_stitch-0.4.0-cp311-abi3-win_amd64.whl

Download URL j_stitch-0.4.0-cp311-abi3-win_amd64.whl
Size 858.8 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
7023ce09dd7a26dda7d688d2189c6b033d673d49130ead0795cd1e7d2501f207
BLAKE2b-256 checksum
How to use checksums
15bfbb91bf0c8385946dd6ba7b0f66949546346aff8ea2adbbfeab304ff24d8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page