gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.09k stars 7.48k forks source link

WebP Exif support #10855

Closed alexvanderberkel closed 2 months ago

alexvanderberkel commented 1 year ago

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.

wild0ne commented 1 year ago

@alexvanderberkel Hey! Could you please provide a user scenario for this enhancement?

alexvanderberkel commented 1 year ago

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

wild0ne commented 1 year ago

Ok, let me look into this and see what I can do

wild0ne commented 1 year ago

/assign

alexvanderberkel commented 8 months ago

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

jmooring commented 8 months ago

See https://github.com/gohugoio/hugo/issues/8586. Maintenance of dsoprea/go-exif has been... sporadic.

bep commented 8 months ago

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.

jbsilva commented 3 months ago

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.

bep commented 2 months ago

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.

github-actions[bot] commented 1 month ago

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.