1
Fork 0

Add comments to functions.

This commit is contained in:
Bauke 2024-01-15 13:04:04 +01:00
parent 1fda5e0138
commit 8ac998ef7d
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ def convert_to_image(
width: Optional[int] = None, width: Optional[int] = None,
height: Optional[int] = None, height: Optional[int] = None,
) -> None: ) -> None:
"""Convert an SVG to an image with `inkscape`."""
inkscape_args: List[str] = ["inkscape", str(source), "-o", str(destination)] inkscape_args: List[str] = ["inkscape", str(source), "-o", str(destination)]
if width is not None and height is not None: if width is not None and height is not None:
@ -37,6 +38,7 @@ def convert_to_image(
def mat2_image(image: Path) -> None: def mat2_image(image: Path) -> None:
"""Run `mat2` on the image path."""
run(args=["mat2", "--inplace", image]) run(args=["mat2", "--inplace", image])