1 unstable release
0.1.0 | Apr 29, 2023 |
---|
#719 in Images
Used in stitchy
43KB
780 lines
Stitchy Core
Joins multiple existing image files into a single output. Builder patterns are provided to perform these operations.
Files can be added by individual paths, or in bulk from directories. This crate relies heavily on the image
crates,
and the output is returned as an image::DynamicImage
, which is re-exported from this crate for convenience.
Images of the same size will stitch together neatly:
Input files | Output | ||
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
If the images are more irregular in shape, the tool will attempt to arrange them as neatly as possible, and scale some images in the process:
Input files | Output | |||
---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
Usage
See crate documentation for details on the API.
Dependencies
~4.5MB
~69K SLoC