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?
DPX little endian GraphicsMagick != Xnview
Moderators: helmut, XnTriq, xnview
Re: DPX little endian GraphicsMagick != Xnview
I've already talk with author of GM, but many software write DPX differently 
I should add an option for that...

I should add an option for that...
Pierre.