m3g4p0p commited on
Commit
e838dda
·
1 Parent(s): b3e6b4d

add scale option

Browse files
Files changed (2) hide show
  1. TODO +3 -0
  2. myapp/cli.py +3 -2
TODO ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ Todo:
2
+ ☐ Upload button
3
+ ☐ Color group
myapp/cli.py CHANGED
@@ -48,5 +48,6 @@ def generate_palette(image, target, n_colors, shades):
48
  @click.option("--text", required=True)
49
  @click.option("--background", type=ImageParamType(), required=True)
50
  @click.option("--target", type=click.Path(dir_okay=False), required=True)
51
- def generate_qr_code(text, background, target):
52
- write_artistic(segno.make(text), background.filename, target)
 
 
48
  @click.option("--text", required=True)
49
  @click.option("--background", type=ImageParamType(), required=True)
50
  @click.option("--target", type=click.Path(dir_okay=False), required=True)
51
+ @click.option("--scale", type=click.IntRange(min=3, max=15), default=9)
52
+ def generate_qr_code(text, background, target, scale):
53
+ write_artistic(segno.make(text), background.filename, target, scale=scale)