rwcarlsen / goexif

Decode embedded EXIF meta data from image files.
BSD 2-Clause "Simplified" License
627 stars 134 forks source link

support png EXIF #59

Open leslie-wang opened 6 years ago

leslie-wang commented 6 years ago

Thanks for making such a useful library. seems like currently it mainly supports JPG. Just wonder if you have any plan to support PNG. such as https://superuser.com/questions/219642/what-software-can-i-use-to-read-png-metadata

rwcarlsen commented 6 years ago

It would certainly be handy, but it appears that png meta data is not actually EXIF-based (https://stackoverflow.com/questions/9542359/does-png-contain-exif-data-like-jpg). So I'm not sure the goexif package is the best location for it. Either way - I won't have time to work on it myself in the near/medium term.

keithwoelke commented 5 years ago

It seems like PNG includes an EXIF block since 2017: http://ftp-osl.osuosl.org/pub/libpng/documents/pngext-1.5.0.html#C.eXIf