Crates.io | libtif |
lib.rs | libtif |
version | 0.1.4 |
source | src |
created_at | 2022-05-20 16:36:25.517 |
updated_at | 2022-05-20 17:07:34.755498 |
description | library for parsing/saving tif files |
homepage | |
repository | https://github.com/pietro222222/libtif |
max_upload_size | |
id | 590364 |
size | 6,200 |
tif is image file format focused on the terminal. its a pretty simple image file format!
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.
to save a tif file you just need one line of code
let your_file_as_bytes = your_tif_image.save();
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