PC/MAC byte order is not preserved in result TIFF

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
medikoo

PC/MAC byte order is not preserved in result TIFF

Post by medikoo »

Hi,

When I convert tiff image with MAC byte order (tiff:endian: msb) in return I get image with PC byte order (tiff:endian: lsb).
I'd like to preserver byte order type in result file.
If it's not done by default how can i force it ? There's only option to specify file format type endianess (-endian) but I don't see option to customize pixel fill order endianess.
Thanks for help!

Version: ImageMagick 6.6.4-4 2010-09-19 Q16
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Re: PC/MAC byte order is not preserved in result TIFF

Post by Drarakel »

medikoo wrote:If it's not done by default how can i force it ?
With "convert <input> -define tiff:endian=msb <output.tif>". (Note that this is the EXIF byte order.)
See here:
http://www.imagemagick.org/script/formats.php (the paragraph about TIFF)
medikoo

Re: PC/MAC byte order is not preserved in result TIFF

Post by medikoo »

That works. Thanks!

I still wonder why imagemagick doesn't by default preserve byte order of the original, at least I would call it an expected behavior.
Post Reply