Crates.io | imgcnvrt |
lib.rs | imgcnvrt |
version | 0.2.0 |
source | src |
created_at | 2021-10-09 17:09:59.719369 |
updated_at | 2021-10-12 23:57:42.434226 |
description | A fast, efficient CLI for converting images to different file formats. |
homepage | https://github.com/parkerziegler/imgcnvrt |
repository | https://github.com/parkerziegler/imgcnvrt |
max_upload_size | |
id | 462853 |
size | 19,192 |
imgcnvrt
is a tiny CLI for doing fast, efficient conversions between image file formats. It is written in Rust and extends functionality from the lovely image
library.
To install imgcnvrt
, first ensure you have a working installation of Rust and cargo, Rust's build system and package manager. Follow the instructions from the Rust book.
Next, run:
cargo install imgcnvrt
imgcnvrt
Once you have imgcnvrt
installed, you can run it like so:
imgcnvrt path/to/my/image.jpg .png
imgcnvrt
takes in two arguments:
.png
, .jpeg
, .tiff
)imgcnvrt
supports convertions based on the restrictions of its parent library image
. Depending on the format you are decoding (converting from) and encoding (converting to), you may encounter errors. For example, there is no support for encoding WebP formats in image
yet; therefore, imgcnvrt
does not support it either. Likewise, if you want to decode a WebP image, it must not contain animation or alpha headers.
For a full list of decoding and encoding support, check out image
's supported image formats.