Page 1 of 1

PC/MAC byte order is not preserved in result TIFF

Posted: 2010-09-20T00:54:32-07:00
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

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

Posted: 2010-09-20T01:25:37-07:00
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)

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

Posted: 2010-09-20T02:16:35-07:00
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.