-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce option to remove SVG background completely #184
base: master
Are you sure you want to change the base?
Introduce option to remove SVG background completely #184
Conversation
This enables removing the background by adding e.g. --background=00000000 which can help when importing the resulting SVG into other software (like OpenSCAD) and the (invisible) background is then still recognised as an object.
I think some other softwares (e.g. Inkscape) unlike OpenSCAD might need a |
No problem here with current Inkscape 1.1 |
I you remove the background |
I've tested with Inkscape 1.0.1 (Sorry, I don't have 1.1 yet).
That is, we lose the size of the QR code image with its background as an unexpected side effect. There might be some other softwares like this... |
I'm not a maintainer, but in my opinion, it would be sufficient to implement an explicit command line option to output no background |
This options causes `qrencode` to not put any background rectangle into the SVG output. This rectangle might be unwanted, e.g. when importing with OpenSCAD where setting the background alpha channel to 0 is not enough.
@lemniscati I changed the Merge Request to introduce an option |
I agree. |
This Merge Request introduces an option
--svg-no-background
which causes the SVG background rectangle to be dropped. This can help when importing the resulting SVG into other software (like OpenSCAD) where the (invisible) background is then still recognised as an object.