Crates.io | stitchy |
lib.rs | stitchy |
version | 0.1.7 |
source | src |
created_at | 2020-04-29 12:26:50.968751 |
updated_at | 2024-05-11 01:16:07.35222 |
description | CLI tool to combine multiple image files into a single image |
homepage | |
repository | https://github.com/grimace87/Stitchy |
max_upload_size | |
id | 235312 |
size | 63,276 |
CLI tool which wraps the features of the stitchy-core crate, adding configuration capabilities using command-line arguments and profile defaults, and adding file output.
See the root project overview for an overview of the Stitchy ecosystem.
Rust version 1.63 or later is required.
cargo
tool by defaultcargo install stitchy
That's it! The binary will be built from source and then become available in a command line.
If you installed Cargo with default settings, binaries will be in the .cargo/bin
directory
inside your home directory, which will be available on your PATH.
If you are using NetBSD, stitchy
is available from the official repositories. To install the
binary package, simply run:
pkgin install stitchy
The simplest case takes a given number of image files from the current directory and stitches them using sensible configuration defaults:
stitchy n
where n
is the number of images you would like to stitch together into one. The tool
will take the n
most recent files and arrange them in a file named "stitch".
Various flags exist to adjust how source images are selected and how the output is generated.
Run stitchy --help
to see a list of these flags.
For the full list of configuration options, run stitchy --help
. Some options are:
--png
, --jpeg
, --gif
or --bmp
; for JPEG a
quality option (0 to 100) can be passed like --quality=___
--maxh=___
or --maxw=___
, or both using
--maxd=___
Defaults can be saved to a file .stitchyrc
in your home directory. Whenever you run stitchy
,
these defaults are applied, unless you override them in the current command.
--setdefaults
and the options you want to save - though
do not pass a number of images - and a stitch operation will not take place but rather the
defaults file will be written using the other arguments suppliedstitchy --cleardefaults
stitchy --printdefaults
; this has the same effect as
printing the contents of the .stitchyrc
file to the terminal.