A powerful program for stitching and cutting webtoons/manhwa/manhua raws.
Project description
Stitch Toon
A powerful package for stitching and cutting webtoons/manhwa/manhua raws.
A GUI version is available at Stitchtoon GUI
Install
Install with pip
pip install stitchtoon
Install from source
git clone https://github.com/BishrGhalil/stitchtoon
cd stitchtoon
pip instal --user requirements.txt
pip install .
Basic usage
$ stitchtoon -H 2000 test/data/jpeg.zip
$ stitchtoon --help
Stitch and slice webtoon/manhwa/manhua raws.
positional arguments:
INPUT Input path: a directory of images or a .zip archive
OUTPUT Output directory path
options:
-h, --help show this help message and exit
--version show program's version number and exit
--progress, --no-progress
Show a progress bar while processing (default: True)
I/O Options:
-f FORMAT, --format FORMAT
Output image format. Supported: BMP, jpeg, png, PSB, PSD, tga, tiff, webp (default: jpg)
-r, --recursive, --no-recursive
Recursively scan subdirectories (default: True)
--archive Pack each output directory into a zip archive (default: False)
--width PX Normalize all images to this width before processing. If omitted, auto-resize to the minimum width found (default: None)
Detection Options:
-m {pixel,direct}, --method {pixel,direct}
Slice detection method (default: pixel)
-H PX, --height PX Target slice height in pixels. Required for 'pixel' and 'direct' methods (default: None)
Pixel Detection Options:
Fine-tuning options only used when --method=pixel
--x-margins PX Pixels to ignore on the left and right edges during detection (default: 0)
--sensitivity PCT Detection accuracy (1-100 percent; lower = more permissive) (default: 100)
--max-height VALUE Maximum slice height. -1 means no limit. A float < height is treated as a fraction of --height; an int is treated as pixels (default: -1)
--min-height VALUE Minimum slice height. -1 means no limit. A float < height is treated as a fraction of --height; an int is treated as pixels (default: -1)
--division-factor N Downscale factor applied before detection (1-5). Higher values are faster but less accurate (default: 1)
--window N Consecutive valid rows required to confirm a slice position. 1 = single-row (default). Values of 5-20 add robustness for noisy content (default: 1)
Development
- run tests
$ make test
- run benchmarks
$ make bench
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stitchtoon-2.1.0.tar.gz
(2.5 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stitchtoon-2.1.0.tar.gz.
File metadata
- Download URL: stitchtoon-2.1.0.tar.gz
- Upload date:
- Size: 2.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e5a948057eb8f59da5c74f190fdec66ee3c547ae47486106e0feba69ebfd1b2
|
|
| MD5 |
91dc9743baa0badcbe0760e4c7c37076
|
|
| BLAKE2b-256 |
f5be78cf6662adcf96a3d4ab5805207199a0c802a1ca391301249fbcf1c2ec9b
|
File details
Details for the file stitchtoon-2.1.0-py3-none-any.whl.
File metadata
- Download URL: stitchtoon-2.1.0-py3-none-any.whl
- Upload date:
- Size: 22.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edc3ddb46fa0f1303bf53666533e20e3974090f1811725de831c49171d8b8159
|
|
| MD5 |
6322ac3ee6237783b293e8047f87edf1
|
|
| BLAKE2b-256 |
43ce0861cce0c839e0bbddb055caba1fdb936e27d252f9a28531039ce8e9f8e9
|