DPX little endian GraphicsMagick != Xnview

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
cbuipx
Posts: 1
Joined: Fri Feb 01, 2013 4:31 pm

DPX little endian GraphicsMagick != Xnview

Post 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?
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: DPX little endian GraphicsMagick != Xnview

Post by xnview »

I've already talk with author of GM, but many software write DPX differently :(
I should add an option for that...
Pierre.
Post Reply