Skip to content

QR code background is transparent when it should be white #23

@rohintoncollins

Description

@rohintoncollins

I am using your example code and was able to produce a barcode, but the background looks transparent when I think it should be white. Your example code cannot read this barcode but has no problems reading barcodes produced by other libraries.

The QR code looks alright in Finder preview on macOS, I think because the Finder preview has a white background:
image

But if I open it in the Preview app, which has a grey background then it looks like this:
image

This is an example of another barcode, opened by preview, which I can open with zxing2:
image

My guess is that the background of the image is transparent when it should be white which is causing the decoder to fail. A shame because I really liked your library. Surely I can fix this easily enough by changing the background to white?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions