awacke1 commited on
Commit
72f42ae
·
1 Parent(s): 6329a16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -78,8 +78,8 @@ def draw_card(background, suit, value, level, card_width, card_height):
78
 
79
  # Resize and add image to SVG
80
  image = image.resize((card_width, card_height))
81
- image.save("background.png")
82
- img = svgwrite.image.Image(href="background.png", size=(f"{card_width}px", f"{card_height}px"))
83
  dwg.add(img)
84
 
85
  # Add suit and value labels
 
78
 
79
  # Resize and add image to SVG
80
  image = image.resize((card_width, card_height))
81
+ image.save(background)
82
+ img = svgwrite.image.Image(href=background, size=(f"{card_width}px", f"{card_height}px"))
83
  dwg.add(img)
84
 
85
  # Add suit and value labels