mirror of
https://github.com/enzet/map-machine.git
synced 2025-07-22 19:07:46 +02:00
Issue #69: add logging.
This commit is contained in:
parent
edd3512526
commit
8fe2f15663
3 changed files with 14 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
"""
|
||||
Rasterize vector graphics using Inkscape.
|
||||
"""
|
||||
import logging
|
||||
import os
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
@ -25,4 +26,5 @@ def rasterize(from_: Path, to_: Path, area: str = "", dpi: float = 90) -> None:
|
|||
commands += ["--export-area", area]
|
||||
commands += [from_.absolute()]
|
||||
|
||||
logging.info(f"Rasterize SVG file to {to_}...")
|
||||
subprocess.run(commands)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue