Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does PNG support metadata fields like Author, Camera Model, etc?

When I click on the image>property>details of a PNG image in Windows many fields are missing compared to a JPEG file. Are these fields supported in PNG? If so, how would they be added in a PNG file programmatically?

like image 904
techno Avatar asked Nov 13 '11 17:11

techno


People also ask

Does PNG support metadata?

PNG has no EXIF chunk. Thus EXIF metadata will get lost if you convert from JPEG into PNG. However Adobe has made XMP for storing all kinds of metadata. So that you can convert between JPEG and PNG while preserving metadata.

What type of data does PNG use?

PNG supports palette-based images (with palettes of 24-bit RGB or 32-bit RGBA colors), grayscale images (with or without an alpha channel for transparency), and full-color non-palette-based RGB or RGBA images.

Does PNG contain EXIF?

The PNG standard does not contain Exif data.


2 Answers

section 11.3.4.2 of the PNG spec gives a list of pre-defined meta tags (keywords)

http://www.w3.org/TR/PNG/#11textinfo

you can add as many other meta tags/fields as you would like.

as for how, programmatically, that depends on the language you're using!

like image 80
Kae Verens Avatar answered Oct 10 '22 12:10

Kae Verens


PNG has no EXIF chunk. Thus EXIF metadata will get lost if you convert from JPEG into PNG.

However Adobe has made XMP for storing all kinds of metadata. So that you can convert between JPEG and PNG while preserving metadata.

like image 38
neoneye Avatar answered Oct 10 '22 14:10

neoneye