Compare commits
No commits in common. "3a17571bdd16dccd2eaf97c2a3b2a8ff83ebad12" and "6ed8ad1d65382c867965fd06edbe11cd30a18244" have entirely different histories.
3a17571bdd
...
6ed8ad1d65
|
@ -23,7 +23,6 @@
|
||||||
"extensions.ignoreRecommendations": true,
|
"extensions.ignoreRecommendations": true,
|
||||||
/* VS Code files settings. */
|
/* VS Code files settings. */
|
||||||
"files.associations": {
|
"files.associations": {
|
||||||
"*.njk": "html",
|
|
||||||
"*.sql": "sql",
|
"*.sql": "sql",
|
||||||
"*.yml": "yaml"
|
"*.yml": "yaml"
|
||||||
},
|
},
|
||||||
|
|
|
@ -25,7 +25,7 @@ def main() -> None:
|
||||||
"-o",
|
"-o",
|
||||||
args.filename,
|
args.filename,
|
||||||
"--",
|
"--",
|
||||||
*gegl_graph(args.height, args.width, args.text, args.font_size),
|
*gegl_graph(args.height, args.width, args.text),
|
||||||
],
|
],
|
||||||
check=True,
|
check=True,
|
||||||
)
|
)
|
||||||
|
@ -92,16 +92,10 @@ def create_parser() -> argparse.ArgumentParser:
|
||||||
help="Use MAT2 to clean the image.",
|
help="Use MAT2 to clean the image.",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
|
||||||
"--font-size",
|
|
||||||
help="The font size to use for the text.",
|
|
||||||
type=int,
|
|
||||||
default=150,
|
|
||||||
)
|
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
|
||||||
def gegl_graph(height: int, width: int, text: str, font_size: int) -> typing.List[str]:
|
def gegl_graph(height: int, width: int, text: str) -> typing.List[str]:
|
||||||
graph = f"""
|
graph = f"""
|
||||||
gegl:text
|
gegl:text
|
||||||
string={text}
|
string={text}
|
||||||
|
@ -109,7 +103,7 @@ def gegl_graph(height: int, width: int, text: str, font_size: int) -> typing.Lis
|
||||||
height={height}
|
height={height}
|
||||||
color=white
|
color=white
|
||||||
font=Heavitas
|
font=Heavitas
|
||||||
size={font_size}
|
size=150
|
||||||
alignment=1
|
alignment=1
|
||||||
vertical-alignment=1
|
vertical-alignment=1
|
||||||
gegl:dropshadow
|
gegl:dropshadow
|
||||||
|
|
Loading…
Reference in New Issue