Page 1 of 1

DPX little endian GraphicsMagick != Xnview

Posted: Fri Feb 01, 2013 4:56 pm
by cbuipx
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?

Re: DPX little endian GraphicsMagick != Xnview

Posted: Mon Feb 04, 2013 2:18 pm
by xnview
I've already talk with author of GM, but many software write DPX differently :(
I should add an option for that...