actionscript-3pngjpegexif

Does PNG contain EXIF data like JPG?


I was wondering if PNG contains data like the following?

What I did was to convert the jpg file to png format, and I was expecting to retrieve the same info I had on the jpg as below:

Currently using this as3 library to read the data.

 

 

 


Solution

  • Edit: Version 1.5.0 (July 2017) of the Extensions to the PNG 1.2 Specification has finally added an EXIF chunk. It remains to be seen if encoders-decoders begin to support it.

    Edit 2: Version 3 (Jun 2025) noted:

    Edit 2: from version 3 (Jun 2025) notes:

    The previously defined eXIf chunk has been moved from the PNG-Extensions document [PNG-EXTENSIONS] into the main body of this specification, to reflect its increasing use.
    

    Original: PNG does not embed EXIF info. It allows, however, to embed metadata "chunks" inside the image. Some of the standardized chunks correspond to a few EXIF attributes (physical dimensions, timestamp). And it's also possible to store arbitrary textual data as key=>value pairs, or to define new chunk types. So, you could in theory store any EXIF information... but, alas, in your own custom format. Some attempts to standarize have not caught up, it seems.