pablohirafuji/elm-qrcode

Generate transparent image

Closed this issue · 2 comments

Hi, thank you for making this great little library.

Is there a way to generate a PNG image with a transparent background?

Hi, you are welcome.

Yes, you can specify a transparent background color, eg.:

QRCode.toImageWithOptions
    { moduleSize = 5
    , darkColor = 0xFF
    , lightColor = 0xFFFFFF00
    , quietZoneSize = 4
    }
    qrCode

Got it, thank you. It even says so in the documentation :)