image-rs / image-tiff

TIFF decoding and encoding library in pure Rust
MIT License
120 stars 78 forks source link

Provide a way to retrieve all tags defined within a file #243

Open gschulze opened 2 months ago

gschulze commented 2 months ago

Currently, it is only possible to retrieve single tags via get_tag(...) and find_tag(...). However, one might be interested in obtaining all defined tags, for instance, when modifying the TIFF and writing it to a file again. Two possible APIs come to my mind:

It would be really nice to have this addition.

spoutn1k commented 1 month ago

I'm working on #242 to do just that, it is far from ready but I am implementing a newtype over your second proposition to streamline tag access. I can update here once I have a better prototype.