flif.rs is a Rust implementation of the flif16 image format. This project was inspired by the work on flif-rs.
Currently this project in alpha stage. As of right now pixel data can be decoded but only for a limited subset of valid flif images. The most significant limitations are: - Animations are not supported. - Interlaced images are not supported. - Grayscale color space is not supported. - Certain transformations are not supported.
As this project progresses more and more missing features will end up being supported.
git clone https://github.com/dgriffen/flif.rs.git
cd flif.rs
cargo build
Cargo.toml
like so:
```toml
[package]
name = "some_package"
version = "0.0.1"
authors = ["John Doe you@example.com"][dependencies]
flif = { git = "https://github.com/dgriffen/flif.rs" }
2. in the root of your project reference the crate:
rust
extern crate flif;
3. the crate can now be used to decode flif headers :D
rust
extern crate flif;
use std::fs::File; use flif::Decoder;
fn main() { let file = std::fs::File::open("someimage.flif").unwrap(); let mut decoder = Decoder::new(file); let flif = decoder.decode().unwrap(); let pixels = flif.getraw_pixels(); } ```
The flif.rs logo is a combination of the official flif logo and Rust logo.