DPX little endian GraphicsMagick != Xnview
Posted: Fri Feb 01, 2013 4:56 pm
I received a "little endian" DPX encoded with "libformat" and noticed the component R and B were inverted if I open it with graphicsmagick or the dpx2tiff (http://dpx.googlecode.com) tool.
I investigated, and saw that if I generate a little endian file with graphicsmagick and open it with Xnview the same problem appears.
Both tools seem to interpret data order differently.
To reproduce the problem just take an image
gm convert image.tiff -endian lsb image.dpx
and open image.dpx in xnview.
If we take first 6 data bytes from offset 0 to 5 :
byte offset: 0 -> 5
gm/dpx2tiff: RGBRGB
xnview: BGRBGR
I would say that gm/dpx2tiff are correct. Is this a bug in XNview?
I investigated, and saw that if I generate a little endian file with graphicsmagick and open it with Xnview the same problem appears.
Both tools seem to interpret data order differently.
To reproduce the problem just take an image
gm convert image.tiff -endian lsb image.dpx
and open image.dpx in xnview.
If we take first 6 data bytes from offset 0 to 5 :
byte offset: 0 -> 5
gm/dpx2tiff: RGBRGB
xnview: BGRBGR
I would say that gm/dpx2tiff are correct. Is this a bug in XNview?