Re: assigning a bit depth other than 8, 16, or 32
Bob Friesenhahn <[email protected]> Wed, 23 Apr 2008 15:39:15 -0500 (CDT)
| Newsgroups | gmane.comp.video.graphicsmagick.bugs |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 23 Apr 2008, Moe Goldberg wrote: > I'm not sure whether this qualifies as a bug, or maybe a request for a > feature. 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. Bob ====================================== Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone