Open frank690 opened 8 months ago
@frank690 thansk for the feature request. Can you please share what kind of exif metadata you are interested in and for what purpose? Recently, we added auto orientation from exif application to read_image to transform the input image according to existing exif info.
You are right, EXIF data mainly stores information about the camera and/or image in their different tags.
But there is - for example - also a tag called UserComment
with the ID 0x9286
.
In my use-case I train on image data and the labels are provided within this specific tag.
So while reading the image I also want to retreive said tag.
I updated the above code example to include the TIFF file-type case.
🚀 The feature
Being able to use torchvision.io.read_image(...) to read PNG files alongside the custom metadata stored in the exchangeable image file format (EXIF).
Motivation, pitch
I am training different deep learning models and some of them rely on custom metadata stored in EXIF inside PNG files. Currently I have to do
but would much rather just ditch PIL.Image and do
Alternatives
No response
Additional context
No response
Edit
added case distinction between TIFF and PNG files