| Crates.io | xcf-rs |
| lib.rs | xcf-rs |
| version | 0.5.0 |
| created_at | 2025-06-08 15:29:18.513682+00 |
| updated_at | 2025-06-08 15:29:18.513682+00 |
| description | A basic standalone GIMP XCF library in Rust. |
| homepage | |
| repository | https://github.com/mothsART/xcf-rs |
| max_upload_size | |
| id | 1704986 |
| size | 128,606 |
Designed for extracting layer and pixel data from XCF files.
I originally made this as part of an art pipeline for a game idea, as such it's missing support for a lot of features (I only needed to pluck pixel data from a few layers).
Contributions welcome.
https://testing.developer.gimp.org/core/standards/xcf/
hachoir : https://hachoir.readthedocs.io/
hexdump
kdiff
extern crate xcf;
use xcf::Xcf;
fn main() {
let mut rdr = File::open("untitled.xcf")
.expect("Failed to open file.");
let raw_image = Xcf::load(&mut rdr)
.expect("Failed to parse XCF file.");
// or simpler yet:
let raw_image = Xcf::open("untitled.xcf")
.expect("Failed to open and parse XCF file.");
}
This soft is initially a fork of https://github.com/shivshank/xcf-rs