Spaces:
Running
Running
add scale option
Browse files- TODO +3 -0
- 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 |
-
|
52 |
-
|
|
|
|
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)
|