RE: Help with unpack

2009-10-12 Thread Brian Raven
Barry Brevik <> wrote: > I am writing an app which, at a certain point, needs to read a .PNG > graphics file. Your unpack question having been ably answered by others, I just thought to ask whether you had considered using any of the existing modules that understand png files, if it is image meta

Re: Help with unpack

2009-10-09 Thread John W Kennedy
On Oct 9, 2009, at 7:16 PM, Michael Ellery wrote: Have you tried reading it as BigEndian (using the N template)? It kinda > looks like BigEndian to me, but I get easily turned around by > endianness... That's the answer. 218103808 is decimal for hex 0x0d00, which is what you get when you l

Re: Help with unpack

2009-10-09 Thread Bill Luebkert
Michael Ellery wrote: > Have you tried reading it as BigEndian (using the N template)? It kinda > looks like BigEndian to me, but I get easily turned around by endianness... N is for Network byte order (big endian) and most PCs are little endian, so you probably have him on the right track. He ne

Re: Help with unpack

2009-10-09 Thread Michael Ellery
Have you tried reading it as BigEndian (using the N template)? It kinda looks like BigEndian to me, but I get easily turned around by endianness... -Mike Barry Brevik wrote: > I am writing an app which, at a certain point, needs to read a .PNG > graphics file. > > The .PNG file is always small,