We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a2c213 commit c6f28e4Copy full SHA for c6f28e4
1 file changed
README.rst
@@ -122,9 +122,12 @@ Or in Python:
122
123
.. code:: python
124
125
+
126
import qrcode
127
import qrcode.image.svg
-
128
129
+ method = input("What method?: ")
130
131
if method == 'basic':
132
# Simple factory, just a set of rects.
133
factory = qrcode.image.svg.SvgImage
@@ -134,8 +137,10 @@ Or in Python:
134
137
else:
135
138
# Combined path factory, fixes white space that may occur when zooming
136
139
factory = qrcode.image.svg.SvgPathImage
140
141
img = qrcode.make('Some data here', image_factory=factory)
142
143
+ img.save('some_file.svg')
144
145
Two other related factories are available that work the same, but also fill the
146
background of the SVG with white::
0 commit comments