Invalid exif metadata format in the png files that Imagen generates

At gemini com I clicked Image and generated an image, then downloaded the .png. If I run exiv2 print or open the image in GIMP, they display “Warning: Failed to decode Exif metadata.” The helpful exiv2 developers are working on a patch that is more forgiving in issue 3319, but comment

I think the Google file is invalid. The zTXt chunk has the signature:

      48 | zTXt  |    9404 | Raw profile type APP1..x...Y.$ | 0x042979cc

So, I see two issues with the file.

  1. Raw profile type APP1
  2. II*… without leading ‘Exif__’

Here are more comments from PNG experts on my exiv2 issue. How can I get Google to acknowledge this bug?

Both macOS Preview.app and ACDsee Photo Studio for Mac fail to read the Exif metadata in the file.

They should really switch to PNGv3 w/ a proper eXIf chunk and drop this legacy nonsense born out of necessity.

The sensible course of action here is for Google to adopt the “Raw profile type exif” convention for exif metadata. … Google have used an unconventional method of storing Exif metadata and this will inflict pain on everybody. Google should choose either chunk eXif or chunk zTXt + signature Raw profile type exif.