Closed alexvanderberkel closed 2 months ago
@alexvanderberkel Hey! Could you please provide a user scenario for this enhancement?
Hej. Of course I can. Think about a gallery of images where you display your images. On that you would like to show also the Exif data of an image. This could be just the camera, aperture, exposure time and ISO. WebP does contain all this data similar to jpg.
An example could be this https://github.com/mfg92/hugo-shortcode-gallery
Ok, let me look into this and see what I can do
/assign
Might be it is worth thinking about introducing https://github.com/dsoprea/go-exif if this has not being considered already. The library would allow reading exif data from WebP files if I am not mistaken. https://github.com/dsoprea/go-webp-image-structure/commit/f9047d252ea5a7142d195918df2759b2dd657b6d
See https://github.com/gohugoio/hugo/issues/8586. Maintenance of dsoprea/go-exif has been... sporadic.
I started to implement a new image metadata library, but I got a little overwhelmed when I started to look at IPTC. The EXIF part was relatively straight forward, though (including WebP support), so maybe I should pick up that thread and push IPTC for another time/year.
I started to implement a new image metadata library, but I got a little overwhelmed when I started to look at IPTC. The EXIF part was relatively straight forward, though (including WebP support), so maybe I should pick up that thread and push IPTC for another time/year.
This would be awesome. In my case, I'm very interested in reading Exif XPKeywords (UCS-2) or IPTC Keywords. It would work great with your gallerydeluxe.
FYI: I have started the work to get my "image meta" library over the finish line (as in: Good enough to be used by Hugo).
Nothing to test in the above yet, but soon.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Currently only JPEG and Tiff are support as file format for reading Exif data from files. I think it would beneficial if also exif data from WebP images could be read within hugo.