XCF File Reader
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).
- results are always returned in RGBA pixels, regardless of original format
- supports RGB or RGBA images, but not grayscale or indexed
- XCF files with better compression are not supported (there is an ignored failing test for this, should someone like to add support)
Contributions welcome.
Documentation
https://testing.developer.gimp.org/core/standards/xcf/
Use of
-
hachoir : https://hachoir.readthedocs.io/
-
hexdump
-
kdiff
Example
extern crate xcf;
use Xcf;
Credits
This soft is initially a fork of https://github.com/shivshank/xcf-rs