feat: change library for svg, apply for all card cases #1
@@ -90,6 +90,10 @@ for card_data in cards:
|
||||
image_path="../../img/missing.png",
|
||||
flavor_text_type=None,
|
||||
)
|
||||
# Check if card image really exists
|
||||
if not Path(card_skin_data.image_path).exists():
|
||||
print("Missing image for card id: ", card_data["id"], " , using default image")
|
||||
card_skin_data = "../../img/missing.png"
|
||||
# Create a new SVG drawing
|
||||
output_dir = "output/" + all_skin_data["skin_name"]
|
||||
os.makedirs(output_dir, exist_ok=True)
|
||||
|
||||
Reference in New Issue
Block a user