Skip to content

On some machines the QR Code image appears to be all black. #1

@scottwb

Description

@scottwb

Reported via email by River Ross on 7/13/2010:

Thank you for writing this plugin which makes qr images so easy to do on rails! Elegant, simple, and awesome!

I ran into a bug and thought I’d pass along the fix. On some machines the qr code appears as a solid black image. The reason is explained here:

http://rubyforge.org/forum/forum.php?thread_id=31218&forum_id=1618

solution:

WHITE_PIXEL = Magick::QuantumRange

(255 is white when image magick is 8-bit, but when its 16, 32, or 64-bit then 255 is nearly black)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions