Metadata-Version: 2.4
Name: j-stitch
Version: 0.4.0
Classifier: Development Status :: 4 - Beta
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Rust
License-File: LICENSE
License-File: THIRD-PARTY-NOTICES.txt
Summary: Scrolling screenshot stitching for Python, implemented in Rust (row-hash + LCS overlap detection)
Keywords: screenshot,stitching,scrolling-capture,image,rust
Author: JYAARU
License-Expression: MIT
Requires-Python: >=3.11
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# 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`.

```python
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 or ARM64, CPython 3.11+ (abi3). Part of
[jietuba](https://github.com/1003129155/jietuba). MIT licensed.

