#image #output-image #join #multiple #combine #single #stitchy

stitchy-core

Library to combine multiple image files into a single image

2 releases

0.1.1 Feb 15, 2024
0.1.0 Apr 29, 2023

#781 in Images

Download history 130/week @ 2024-02-14 19/week @ 2024-02-21 26/week @ 2024-02-28 6/week @ 2024-03-06 7/week @ 2024-03-13

65 downloads per month
Used in stitchy

MIT license

52KB
1K SLoC

Stitchy Core

example workflow Crates.io

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
Sample 1 Sample 2 Sample 3 Sample 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
Sample 1 Sample 2 Sample 3 Sample 3 Sample Output

Usage

See crate documentation for details on the API.

Dependencies

~12MB
~62K SLoC