On Wed, 23 Apr 2008, Moe Goldberg wrote:
> I'm not sure whether this qualifies as a bug, or maybe a request for a
Seems like a request for a change which is neither a bug or a feature.
> I am trying to write a dpx file using GraphicsMagick, and I can't
> because I can't set the bit depth to 10 by calling myimg.depth(10) (it
> rounds it up to 16). This behaves exactly as documented, but it prevents
> my image from being written properly to dpx.
There was a time when particular depths were required since some code
would mis-behave. Those times are long-gone in GM 1.2. 10 and 12 bit
images have been in the test suite for several years.
> I tried commenting out the part of the code that rounds 10 up to 16, and
> it wrote my image correctly. It would be nice if the depth method had an
> optional flag called round (or something similar). If round is true
> (which would be the default behaviour) it will behave as it currently
> does, if round is set to false, then you can set depth to any value that
> you want.
I will simply remove the code which forces 8/16/32 and update the
documentation to reflect the change.
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/