Print inkscape command used to generate PNG
this allows the user to edit the SVG and regenerate the PNG
This commit is contained in:
parent
edb8e40988
commit
1b2926e547
@ -122,8 +122,12 @@ def makeFaces(deckJson, outfile):
|
|||||||
cardNum += 1
|
cardNum += 1
|
||||||
|
|
||||||
baseImage.write(outfile + ".svg")
|
baseImage.write(outfile + ".svg")
|
||||||
subprocess.call(["inkscape", "-z", "-f", outfile + ".svg", "-w",
|
command = ["inkscape", "-z",
|
||||||
str(baseX * CARD_WIDTH * 4), "-e", outfile + ".png"])
|
"-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
|
return baseX
|
||||||
|
|
||||||
def makeCardJson(template, nickname, description, cardID):
|
def makeCardJson(template, nickname, description, cardID):
|
||||||
|
Reference in New Issue
Block a user