Re: CFD: eXIf 2017-05-31

Glenn Randers-Pehrson <[email protected]> Thu, 8 Jun 2017 23:37:50 -0400
Newsgroups gmane.comp.graphics.png.general
Message-ID <CA+PdXcv+uznMzzt2+1WNYQadMkrL2N4Q9a73n0Zg2b2cN=9_TQ@mail.gmail.com>
On Thu, Jun 8, 2017 at 11:25 PM, Cosmin Truta <[email protected]> wrote:
> 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.CALL for DISCUSSION

It's 2^16-2 (2-bytes for the length, plus the payload).

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