Print inkscape command used to generate PNG

this allows the user to edit the SVG and regenerate the PNG
This commit is contained in:
Adam Goldsmith 2017-08-05 12:10:59 -04:00
parent edb8e40988
commit 1b2926e547
1 changed files with 6 additions and 2 deletions

View File

@ -122,8 +122,12 @@ def makeFaces(deckJson, outfile):
cardNum += 1
baseImage.write(outfile + ".svg")
subprocess.call(["inkscape", "-z", "-f", outfile + ".svg", "-w",
str(baseX * CARD_WIDTH * 4), "-e", outfile + ".png"])
command = ["inkscape", "-z",
"-f", outfile + ".svg",
"-w", str(baseX * CARD_WIDTH * 5),
"-e", outfile + ".png"]
print("To regenerate PNG after editing SVG, run:\n " + " ".join(command))
subprocess.run(command)
return baseX
def makeCardJson(template, nickname, description, cardID):