Crates.io | revolt_little_exif |
lib.rs | revolt_little_exif |
version | 0.5.1 |
source | src |
created_at | 2024-09-06 11:43:40.598472 |
updated_at | 2024-10-28 14:46:07.26006 |
description | (fork which includes support for passing filetype directly) Basic reading and writing of EXIF (related) metadata for PNG, JP(E)G, JXL and WebP image files (other file types - e.g. TIFF or HEIC - are planned), with the advantage of being solely written in Rust & not relying on any 3rd party non-rust library. |
homepage | |
repository | https://github.com/revoltchat/little_exif |
max_upload_size | |
id | 1365829 |
size | 262,093 |
A little library for reading and writing EXIF data in pure Rust.
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!
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);
Licensed under either
at your option.