cgohlke / imagecodecs

Image transformation, compression, and decompression codecs
https://pypi.org/project/imagecodecs
BSD 3-Clause "New" or "Revised" License
118 stars 23 forks source link

Metadata (e.g EXIF tags) Support #38

Closed John-P closed 2 years ago

John-P commented 2 years ago

Is it in the scope of imagecodecs to support reading/writing of EXIF metadata (and PNG chunks etc.)? This would be a really useful but likely also non-trivial addition. In particular the EXIF resolution tags (and maybe PNG physical pixel/subject scale chunks) are of interest to me.

cgohlke commented 2 years ago

Metadata are currently out of the scope of the imagecodecs library although it would be nice to have *_info() and iminfo() functions to return standardized metadata. Currently imagecodecs focuses on getting chunks of image data (as numpy arrays) in and out of container formats such as TIFF, CZI, or zarr. Those containers store relevant metadata independent from the image chunks.