Expand description
§little_exif
A small crate for reading and writing (some) EXIF data, written entirely in Rust. Currently supports
- .png
- .jp(e)g
- .jxl
- .webp files and a few dozen tags in IFD0 and ExifIFD.
Interaction is done via the Metadata
struct and the ExifTag
enum.
§Usage
§Write EXIF data
use little_exif::metadata::Metadata;
use little_exif::exif_tag::ExifTag;
let mut metadata = Metadata::new();
metadata.set_tag(
ExifTag::ImageDescription("Hello World!".to_string())
);
metadata.write_to_file(std::path::Path::new("image.png"));