kamadak / exif-rs

Exif parsing library written in pure Rust
BSD 2-Clause "Simplified" License
190 stars 42 forks source link

Support HEIF file format #9

Closed jhspetersson closed 4 years ago

jhspetersson commented 4 years ago

HEIF is the default one for photos taken with iOS since version 11.

Targeting https://github.com/jhspetersson/fselect/issues/65

kamadak commented 4 years ago

This library is for parsing Exif attributes. Retrieving an Exif data block from a container is basically out of scope. JPEG (as a container) is supported only because the Exif standard specifies it.

That said, I understand that it would be convenient if major containers were supported out of the box (and without heavy dependencies), so I will think about it and probably add support for HEIF soon.

In the meantime, please extract the Exif data block by yourself with some HEIF library. For example, see this: https://github.com/Cykooz/libheif-rs/blob/e44212097dbd25c122edf8621b98e7f9c9003b48/tests/read_test.rs#L95-L102.

kamadak commented 4 years ago

Version 0.5 includes HEIF support. Also, AVIF is automatically supported because it reuses the HEIF container.

jhspetersson commented 4 years ago

Awesome! Thank you so much for the implementing that!