imggen

Crates.ioimggen
lib.rsimggen
version0.1.0
sourcesrc
created_at2024-08-28 04:29:46.102485
updated_at2024-08-28 04:29:46.102485
descriptionA simple image generator
homepage
repositoryhttps://github.com/ChurchTao/imggen
max_upload_size
id1354111
size800,778
桃树夭 (ChurchTao)

documentation

https://docs.rs/imggen

README

imggen

Latest version Documentation MSRV GitHub License

imggen is a test image generation tool that can generate images of various sizes and colors.

Usage

Add the following content to your Cargo.toml:

# sample
imggen -w 1024 -h 768 -f png -n myimage -o ~/Desktop
# or

Usage: imggen [OPTIONS]

Options:
  -w, --width <WIDTH>        Sets the width of the image [default: 800]
  -h, --height <HEIGHT>      Sets the height of the image [default: 600]
  -f, --format <FORMAT>      Sets the output format (png, jpg, etc.) [default: png]
  -n, --filename <FILENAME>  Sets the output filename [default: output]
  -o, --outdir <OUTDIR>      Sets the output directory [default: .]
  -h, --help                 Print help
  -V, --version              Print version

License

This project is licensed under the MIT License. See the LICENSE file for details.

Commit count: 0

cargo fmt