leafo / magick

Lua bindings to ImageMagick for LuaJIT using FFI
401 stars 79 forks source link

bit depth #27

Open ghost opened 8 years ago

ghost commented 8 years ago

is there a method that returns the bit depth? particularly since pixel values are returned as doubles from 0 to 1, getting the actual pixel value back as an integer requires this.

ghost commented 8 years ago

in other words can we expand the instructions for using the image.get_option(Magick, key) method? what are the possible values of "Magick", and "key" are they related to this list? http://www.imagemagick.org/api/magick-property.php

ghost commented 8 years ago

can this issue become a feature request? to add a method img:get_depth() to easily return the bit depth of the image?