2 unstable releases
0.5.1 | Oct 28, 2024 |
---|---|
0.4.0 | Sep 6, 2024 |
#434 in Images
180KB
4K
SLoC
little_exif
A little library for reading and writing EXIF data in pure Rust.
Supported Formats
- JPEG
- JXL
- PNG
- WebP (only lossless and extended)
Your required format is not listed here or you've run into a problem with a file that should be supported? Open up a new issue (ideally with an example image for reproduction in case of a problem) and I'll take a look!
Example
use little_exif::metadata::Metadata;
use little_exif::exif_tag::ExifTag;
let image_path = std::path::Path::new("image.png");
let mut metadata = Metadata::new_from_path(&image_path);
metadata.set_tag(
ExifTag::ImageDescription("Hello World!".to_string())
);
metadata.write_to_file(&image_path);
License
Licensed under either
- Apache License, Version 2.0 (See LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0) or
- MIT License (See LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Dependencies
~275KB