MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / render_logos

Function render_logos

scripts/generate_assets.py:187–194  ·  view source on GitHub ↗

Render the logo SVG to all required PNG outputs.

(inkscape: str)

Source from the content-addressed store, hash-verified

185
186
187def 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
197def _render_slate(inkscape: str, work_dir: Path, side: int, *, inverted: bool) -> Image.Image:

Callers 1

mainFunction · 0.85

Calls 1

render_svgFunction · 0.85

Tested by

no test coverage detected