libtif

Crates.iolibtif
lib.rslibtif
version0.1.4
sourcesrc
created_at2022-05-20 16:36:25.517
updated_at2022-05-20 17:07:34.755498
descriptionlibrary for parsing/saving tif files
homepage
repositoryhttps://github.com/pietro222222/libtif
max_upload_size
id590364
size6,200
buzz (Pietro222222)

documentation

https://docs.rs/libtif

README

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

Commit count: 7

cargo fmt