chai2010 / webp

WebP decoder and encoder for Go (Zero Dependencies).
http://godoc.org/github.com/chai2010/webp
BSD 3-Clause "New" or "Revised" License
539 stars 90 forks source link

Exif Metadata getting set incorrectly #43

Open aayush2610 opened 2 years ago

aayush2610 commented 2 years ago

I have a service where I am able to convert jpeg images into webp and render them. The jpeg image that I get has exif information which I extract using goexif library.

In order to preserve the metadata in the webp image as well, I encode my image with webp encoder and try to set the EXIF data that I extracted earlier, in the encoded image data using the method SetMetadata. This executes successfully and if I try to call GetMetadata after the previous step, I get the correct response i.e all the EXIF tags that were supposed to be set.

The issue that I face here is, when I try to extract the metadata of the returned webp image using any other online tool, like exif viewer extension on chrome, it errors out with failure to decode exif metadata

Can someone help here?