Re: CFD: eXIf 2017-05-31

Cosmin Truta <[email protected]> Thu, 8 Jun 2017 23:25:07 -0400
Newsgroups gmane.comp.graphics.png.general
Message-ID <CAAoVtZw+aByC-596v83whhq+3u3m-XON6VQacdP5D10Ve052FA@mail.gmail.com>
On 8 June 2017 at 22:33, Cosmin Truta wrote:
> There are no size constraints upon the eXIf chunk size beyond those
> imposed by the PNG specification, i.e. maximum 2^31-1 bytes. However,
> applications may optionally impose a size constraint of maximum
> 2^16-1 bytes, for easy interchange with the JPEG format.

I realized that I don't really know the correct maximum size of JPEG
"Exif" chunk content. Is it 2^16 bytes? Or is it 2^16-1 bytes? Or is
it 2^16-N, where N is a small number that accounts for the presence of
the JPEG APP1 "Exif\0\0" marker (and the whole thing must fit in the
64KB limit)?

I suppose that Glenn (who has experience with ImageMagick) or Phil
(who has experience with ExifTool) would know. We should mention the
exact limit.

Sincerely,
Cosmin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot