tags:

views:

164

answers:

2

Im not sure if endian is the right word but..

I have been parsing through a PNG file and I have noticed that all of the integer values are in big endian. Is this true?

For example, the width and height are stored in the PNG file as 32bit unsigned integers. My image is 16x16 and in the file its stored as:

00 00 00 10

when it should be:

10 00 00 00

Is this true or is there something I am missing?

+3  A: 

Integers in PNG are in network byte order (big endian).

See: the spec.

Seth
Ok, thanks -- that's what I've been reading too haha
Marlon