creatale / node-dv

A node.js library for processing and understanding scanned documents
Other
340 stars 72 forks source link

gray image format not supported #1

Closed routix closed 11 years ago

routix commented 11 years ago

Documentation states that 'gray' format is supported but image.cc defines rgb and rgba only (line: 194):

    if (strcmp("rgba", *format) == 0) {
        depth = 32;
    } else if (strcmp("rgb", *format) == 0) {
        depth = 24;
    } else {
        std::stringstream msg;
        msg << "invalid buffer format '" << *format << "'";
        return THROW(Error, msg.str().c_str());
    }
schulzch commented 11 years ago

True and thanks for the fix :+1: