Render the logo SVG to all required PNG outputs.
(inkscape: str)
| 185 | |
| 186 | |
| 187 | def render_logos(inkscape: str): |
| 188 | """Render the logo SVG to all required PNG outputs.""" |
| 189 | print("Rendering logo PNGs...") |
| 190 | for entry in LOGO_OUTPUTS: |
| 191 | rel_path = entry.path.relative_to(REPO_DIR) |
| 192 | print(f" {rel_path} ({entry.width}x{entry.height}) [source: {entry.source.name}]...") |
| 193 | render_svg(inkscape, entry.source, entry.path, entry.width, entry.height) |
| 194 | print(f" Done ({len(LOGO_OUTPUTS)} files).") |
| 195 | |
| 196 | |
| 197 | def _render_slate(inkscape: str, work_dir: Path, side: int, *, inverted: bool) -> Image.Image: |