5 releases
0.1.4 | May 20, 2022 |
---|---|
0.1.3 | May 20, 2022 |
0.1.2 | May 20, 2022 |
0.1.1 | May 20, 2022 |
0.1.0 | May 20, 2022 |
#14 in #tiff
7KB
127 lines
what is tif?
tif is image file format focused on the terminal. its a pretty simple image file format!
what does this library does
parsing
there are two ways of parsing with libtif
let image = TifImage::parse_from_file("my_image.tif")?;
and
let image = TifImage::parse_from_bytes(vec![])?;
you'll use parse_from_bytes
either way, but parse_from_file is for lazy people like.
saving
to save a tif file you just need one line of code
let your_file_as_bytes = your_tif_image.save();
how to create tif images
if you wanna create tif images programatically, you'll need to create that struct by yourself, initializing all the fields by yourself. this library isnt meant for that kind of thing!
but if you wanna create tif images through your terminal, you can use my program tif_editor