I’ve stumbled upon this new feature https://gohugo.io/extras/localfiles/ and I thought I would be useful to read the EXIF data of images to generate cool galleries with adanced informations or maps with GPS data from those images.
I would like to propose a new function
readImages which works the same way as
readImages returns within the
for _, img := range readImages $path loop a new struct containing all file information from
os.FileInfo and on top important EXIF data, not all but many of them (we can add more later). The only library I’ve found without importing C is https://github.com/rwcarlsen/goexif
Available EXIF fields: https://github.com/rwcarlsen/goexif/blob/go1/exif%2Ffields.go
Any thoughts? Maybe a better name for the function or which fields to include in the new EXIF struct?
Go or No-Go?