Page 1 of 1

PC or MAC byte order bug

Posted: 2010-06-28T13:55:01-07:00
by markzman
I seem to get incorrect Endianess value for determining what byte order was used on my sample files.

sample PC byte order
http://www.clipartof.com/images/free_ho ... le_pc.tiff

sample MAC byte order
http://www.clipartof.com/images/free_ho ... e_mac.tiff

One saved with PC byte order and the other with MAC byte order but IM detects both Endianess value - MSB.
posted on Users section - viewtopic.php?f=1&t=16514

Re: PC or MAC byte order bug

Posted: 2010-06-29T09:34:31-07:00
by magick
TIFF has two types of endianess, the file format, and the pixel fill order. ImageMagick only supports one type of endianess and we set it with the TIFF FILLORDER tag. We'll add a TIFF property to report the TIFF image endianess in the next point release of ImageMagick.

Re: PC or MAC byte order bug

Posted: 2010-06-29T12:03:30-07:00
by markzman
looking forward for the next release.

Re: PC or MAC byte order bug

Posted: 2010-06-30T11:47:34-07:00
by fmw42
This now works in IM 6.6.2-10 Q16 Mac OSX Tiger.

See the properties section:

identify -verbose 0180-1006-2814-4729_sample_pc.tiff
...
tiff:endian: lsb
...



identify -verbose 0180-1006-2814-4937_sample_mac.tiff
...
tiff:endian: msb
...

Re: PC or MAC byte order bug

Posted: 2010-07-01T12:44:24-07:00
by markzman
Works as it should, thanks guys.