Page 1 of 1

10bit DPX with annotate gives strange results

Posted: 2011-09-23T23:58:26-07:00
by aberkl
Hi all,

not sure this is a bug or because of an error I do...

I try to annotate text to 10 bit DPX images but getting very different results when displaying them in the programs listed below (all run under Windows XP).

I am using ImageMagick 6.7.2-8 2011-09-23 Q16 under Windows XP to create the DPX images.

results as expected:
- imdisplay (sic!) http://www.imagemagick.org
- DPX Viewer V0.60 http://www.panavision.co.uk/downloads/p ... ftware.asp

results NOT as expected:
- XNView 1.98.2 http://www.xnview.com/ blue instead of red/vertical stripes
- djv_view djv-0.8.3-pre2 http://djv.sourceforge.net error message "Unsupported file"

Could this be just a header issue?

That´s what I am actually trying to do:
no good - vertical stripes / "Unsupported file"

Code: Select all

convert -depth 10 -size 100x100 xc:red -gravity center -annotate +0+0 "red 10bit" red10bitWithText.dpx
some further tests I did:
no good - blue, should be red

Code: Select all

convert -depth 8 -size 100x100 xc:red -gravity center -annotate +0+0 "red 8bit" red08bitWithText.dpx
no good - blue, should be red

Code: Select all

convert -size 100x100 xc:red -gravity center -annotate +0+0 "red Q16" redQ16WithText.dpx
good but no text (sic!)

Code: Select all

convert -depth 10 -size 100x100 xc:red red10bitPlain.dpx
Best, Andreas

Re: 10bit DPX with annotate gives strange results

Posted: 2011-09-24T05:44:45-07:00
by magick
ImageMagick follows the SMPTE 268M-2003 standard for the DPX image format. If you can show ImageMagick has violated this standard, we will investigate. Your posting suggests that perhaps one of the programs you listed may not read and / or write DPX images properly, however you did not specifically identify that the problem is with ImageMagick.

Re: 10bit DPX with annotate gives strange results

Posted: 2011-09-24T09:53:10-07:00
by aberkl
Hi magick,

thanks for your reply!
magick wrote:Your posting suggests that perhaps one of the programs you listed may not read and / or write DPX images properly, however you did not specifically identify that the problem is with ImageMagick.
XNView never let me down in the past with DPX files and I find it a bit odd that when you add some text to an otherwise compatible DPX rendered by ImageMagick all of a sudden the result is a broken image

fine in XNView

Code: Select all

convert -depth 10 -size 100x100 xc:red red10bitPlain.dpx
broken in XNView, just added some text with annotate

Code: Select all

convert -depth 10 -size 100x100 xc:red -gravity center -annotate +0+0 "red 10bit" red10bitWithText.dpx
snip identify -verbose red10bitPlain.dpx = the fine one

Code: Select all

Image: red10bitPlain.dpx
  Format: DPX (SMPTE 268M-2003 (DPX 2.0))
  Class: DirectClass
  Geometry: 100x100+0+0
  Resolution: 72x72
  Print size: 1.38889x1.38889
  Units: Undefined
  Type: Palette
  Base type: TrueColor
  Endianess: MSB
  Colorspace: RGB
  Depth: 10/1-bit
  Channel depth:
    red: 1-bit
    green: 1-bit
    blue: 1-bit
snip identify -verbose red10bitWithText.dpx = the broken one

Code: Select all

Image: red10bitWithText.dpx
  Format: DPX (SMPTE 268M-2003 (DPX 2.0))
  Class: DirectClass
  Geometry: 100x100+0+0
  Resolution: 72x72
  Print size: 1.38889x1.38889
  Units: Undefined
  Type: PaletteMatte
  Base type: TrueColor
  Endianess: MSB
  Colorspace: RGB
  Depth: 10/16-bit
  Channel depth:
    red: 16-bit
    green: 1-bit
    blue: 1-bit
    alpha: 16-bit
If you look at Type: Palette vs. PaletteMatte and Channel depth which gets an alpha channel in the "bad" images - this to me looks more like a problem in ImageMagick...

Best, Andreas

Re: 10bit DPX with annotate gives strange results

Posted: 2011-09-24T12:50:48-07:00
by magick
Perhaps XNView does not support the full DPX image specification. Try removing the alpha channel:
  • convert -depth 10 -size 100x100 xc:red +matte red10bitPlain.dpx

Re: 10bit DPX with annotate gives strange results

Posted: 2011-09-24T23:53:08-07:00
by aberkl
Hi magick,

This makes everybod happy: XNView, djv_view happy and me.

Code: Select all

convert -depth 10 -size 100x100 xc:red -gravity center -annotate +0+0 "red 10bit" +matte red10bitWithText.dpx
Thanks a lot!
Andreas