Reputation: 256
Does either JPEG or PNG support compression of metadata/ancillary data?
Everything I've read so far focusses on the image compression and I can't find any mention of extended data compression.
The reason I ask is that metadata was shown to contribute to ~16% on average across a number of JPEG files, but if it was compressed this could be a lot less.
Most compression software seems to remove the metadata, but is it possible to compress it instead?
Upvotes: 1
Views: 851
Reputation: 27084
JPEG (or JIF-based formats, like JFIF or Exif) typically contain:
PNG typically contain:
In other words, yes, you could compress it, but most of the time, the data would no longer be readable by software written to follow the mentioned specifications. Thus, it's not really practical.
Upvotes: 3