Update --help in apply_image
This commit is contained in:
parent
c16b92397b
commit
e8561cbb1f
|
@ -11,6 +11,20 @@ fontConstant = 96
|
||||||
markConstant = 5
|
markConstant = 5
|
||||||
linesConstant = 150
|
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) :
|
def generate_text (text, fontSize, rotation) :
|
||||||
rgb_color=(255,255,255)
|
rgb_color=(255,255,255)
|
||||||
color = tuple(reversed(rgb_color))
|
color = tuple(reversed(rgb_color))
|
||||||
|
@ -183,13 +197,6 @@ def apply_image (args) :
|
||||||
##print(f'Wrote {args.destination}')
|
##print(f'Wrote {args.destination}')
|
||||||
|
|
||||||
def main () :
|
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)
|
apply_image(args)
|
||||||
|
|
||||||
main()
|
main()
|
|
@ -0,0 +1 @@
|
||||||
|
from json import load
|
Loading…
Reference in New Issue