Solid background? #197
-
This seems it should be silly simple, but... How do I make a QR with a solid white background? I'm using circles for the modules, but with the exception of Jpeg format, any QR I make has dots for the light areas, or nothing at all. How do I generate a QR image with a solid background? (I'm using v5 beta) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Hey, I've just recently cleaned up the background color situation for GD and Imagick output. You should be able to set |
Beta Was this translation helpful? Give feedback.
-
Got it. I was a) mainly testing with SVG, and b) missing May I make a request? Make SVG work the same as the others? If I specifically say to add a background, it should have a background. I — in part — use this as a utility so people I work with can generate branded QR codes. I may know how to use CSS, but I don't expect my layman users to. (And now I'm off to figure out how to add a logo!) Very cool library, if sometimes frustrating.... :-) |
Beta Was this translation helpful? Give feedback.
-
I take it back. Saved an SVG to file and can't find the "box" I need to style with CSS. Even if set to transparent, the background "box" should be there...? |
Beta Was this translation helpful? Give feedback.
-
I'll make my request a bit more precise. With SVG format, please:
I'm setting my QRs to circular modules, and can't find any way to have a solid white background behind the visible (dark) circles. A simple box to style would simplify things greatly. |
Beta Was this translation helpful? Give feedback.
Example for GD: