Update --help in apply_image

This commit is contained in:
Matt McWilliams 2024-01-09 14:32:14 -05:00
parent c16b92397b
commit e8561cbb1f
2 changed files with 15 additions and 7 deletions

View File

@ -11,6 +11,20 @@ fontConstant = 96
markConstant = 5
linesConstant = 150
####
#
# Take 1-4 images and apply them to a rasterized, hole-punched
# page that can be printed and shot.
#
####
parser = argparse.ArgumentParser(description='Create a printable rasterized image that can be hole punched and animated.')
parser.add_argument('name', help='Name of project')
parser.add_argument('destination', help='File to output image to')
parser.add_argument('template', help='Template file to use')
parser.add_argument('images', nargs=argparse.REMAINDER, help='Images to place as cells')
args = parser.parse_args()
def generate_text (text, fontSize, rotation) :
rgb_color=(255,255,255)
color = tuple(reversed(rgb_color))
@ -183,13 +197,6 @@ def apply_image (args) :
##print(f'Wrote {args.destination}')
def main () :
parser = argparse.ArgumentParser(description='Create a printable rasterized image that can be hole punched and animated.')
parser.add_argument('name', help='Name of project')
parser.add_argument('destination', help='File to output image to')
parser.add_argument('template', help='Template file to use')
parser.add_argument('images', nargs=argparse.REMAINDER)
args = parser.parse_args()
apply_image(args)
main()

1
fourcell/apply_svg.py Normal file
View File

@ -0,0 +1 @@
from json import load