Browse Source

Remove background from SVGBob file.

master
Gijs 7 months ago
parent
commit
3719c7a1ec
  1. 4
      app.py

4
app.py

@ -247,6 +247,10 @@ def hpgl (id):
# to SVG
svg = ascii2svg(ascii_input, params['weight'])
svg = re.sub(r'\<rect class="backdrop" x="\d+" y="\d+" width="\d+" height="\d+">\<\/rect\>', '', svg, flags=re.M)
#print(svg)
# store as a temporary file
(svg_file, svg_path) = tempfile.mkstemp('.svg')

Loading…
Cancel
Save