TechnikTobi / little_exif

A little library for reading and writing EXIF data in pure Rust.
Apache License 2.0
22 stars 5 forks source link

Can't find ImageDescription #14

Closed TechnikTobi closed 1 month ago

TechnikTobi commented 1 month ago

By a rust program I did using the kamadak-exif crate (whose writing feature is denoted "experimental" and I could not get it working at all), with another jpg file I see

Tiff 270
**** id ImageDescription = Thumbs Annotation 

but a rust program I did using little_exif does not show the description when doing

            for field in meta.data().iter() {
                match field {
                    ExifTag::ImageDescription(s) => {
                        println!("ImageDescription  : {}", s);
                    }

but does count 40 fields in that loop.

is TIFF ID 270 something different form little's ExifTag::ImageDescription ?

_Originally posted by @mschnell1 in https://github.com/TechnikTobi/little_exif/issues/11#issuecomment-2370955054_

TIFF ID 270 is decimal and equals the hex number 0x010E, which is exactly the hex value of the ImageDescription tag.

Can you please check again that you indeed read the EXIF data from the image file like e.g.

let metadata = Metadata::new_from_path(&jpg_path).unwrap();

If so, does the warning "WARNING: Can't read metadata from file - Create new & empty struct" show up? If this warning does not come up, do any other tags show up when you iterate over the meta.data()? And could you please provide the original image file for this as well?

TechnikTobi commented 1 month ago

Closing this issue - see: https://github.com/TechnikTobi/little_exif/issues/15#issuecomment-2373112422