Re: DRAFT: eXIF 2017-03-05

Willem van Schaik <[email protected]> Mon, 6 Mar 2017 12:13:52 -0700
Newsgroups gmane.comp.graphics.png.general
Message-ID <[email protected]>
good point!! here a suggestion



The first two bytes of data are either "II" for little endian or "MM" 
for big endian. Decoders should check the first four bytes to ensure 
that they have the following decimal values:
<pre>
     73, 73, 42, 0
</pre>
or
<pre>
     77, 77, 0, 42
</pre>"






On 2017-03-06 10:45, Cosmin Truta wrote:
> On 5 March 2017 at 09:47, Glenn Randers-Pehrson <[email protected]> wrote:
>> DRAFT
>> eXIf 2017-03-05
>> http://www.simplesystems.org/png-group/proposals/eXIf/
>> png-proposed-eXIf-chunk-03-05.html
>> Glenn Randers-Pehrson <[email protected]>
>
> Hi,
>
> The latest eXIf draft looks good. May I please suggest one small
> editorial (i.e. non-semantic) change: don't just check the endianness
> bytes; check the entire TIFF/EXIF "philosophical" signature instead.
>
> Instead of:
>
> "Decoders should check the first two bytes of data to ensure that they
> are "II" or "MM"."
>
> We can be more specific and say:
>
> "Decoders should check the first four bytes of data to ensure that
> they are "II\x2a\x00" or "MM\x00\x2a"."
>
> Or even be encoding-agnostic and say:
>
> "Decoders should check the first four bytes of data to ensure that
> they are "\x49\x49\x2a\x00" or "\x4d\x4d\x00\x2a"."
>
> Or use base 10 (as it is customary in the rest of the PNG
> specification) and say:
>
> "Decoders should check the first four bytes of data to ensure that
> they have the following decimal values:
> <pre>
>     73, 73, 42, 0
> </pre>
> or
> <pre>
>     77, 77, 0, 42
> </pre>"
>
> Sincerely,
> Cosmin
>
> ------------------------------------------------------------------------------
> Announcing the Oxford Dictionaries API! The API offers world-renowned
> dictionary content that is easy and intuitive to access. Sign up for an
> account today to start using our lexical data to power your apps and
> projects. Get started today and enter our developer competition.
> http://sdm.link/oxford
> _______________________________________________
> png-mng-misc mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/png-mng-misc
>
>

-- 
Willem van Schaik
[email protected]

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford