PC or MAC byte order bug

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
markzman
Posts: 20
Joined: 2010-02-25T00:43:45-07:00
Authentication code: 8675308

PC or MAC byte order bug

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: PC or MAC byte order bug

Post 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.
markzman
Posts: 20
Joined: 2010-02-25T00:43:45-07:00
Authentication code: 8675308

Re: PC or MAC byte order bug

Post by markzman »

looking forward for the next release.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PC or MAC byte order bug

Post 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
...
markzman
Posts: 20
Joined: 2010-02-25T00:43:45-07:00
Authentication code: 8675308

Re: PC or MAC byte order bug

Post by markzman »

Works as it should, thanks guys.
Post Reply