fontlabapp.qt.images.resources
resources
Host-free resource lookup and injected Qt image rendering.
Qt is supplied explicitly; macOS PDF conversion invokes sips only on request. Resource folder policy and Cocoa value types belong to caller adapters.
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
IMAGE_TYPES |
attribute | (shared captured text) | |
RASTER_TYPES |
attribute | ||
SIPS |
attribute | (shared captured text) | |
SIPS_TIMEOUT |
attribute | (shared captured text) | |
find_image |
function | (name: str | None, resources: str | Path | None, *, extensions: tuple[str, ...]=IMAGE_TYPES, folders: tuple[s… |
Find a resource using the caller's ordered folders and extensions. |
pdf_dimensions |
function | (path: str | Path, *, run: Callable=subprocess.run, executable: str=SIPS, timeout: float=SIPS_TIMEOUT) -> tup… |
The first page's size in points, or None when sips cannot read it. |
raster_image |
function | (qt: Any, path: str | Path, width: int, height: int) -> Any |
Read the smallest frame covering the target, or the largest available. |
render_pdf |
function | (path: str | Path, width: int, height: int, *, run: Callable=subprocess.run, executable: str=SIPS, timeout: f… |
PNG bytes of the page rasterised at <code>width</code><code> x </code><code>height</code> pixels. |
retina_variant |
function | (path: str | Path, *, raster_types: tuple[str, ...]=RASTER_TYPES) -> Path | None |
Find a raster's <code>name@2x</code> sibling using ordered format candidates. |
run_sips |
function | (argv: list[str], run: Callable, *, executable: str=SIPS, timeout: float=SIPS_TIMEOUT) -> Any |
Run the bounded macOS image converter, returning None on launch/timeout errors. |
svg_image |
function | (qt: Any, renderer: Callable[[], Any], width: int, height: int) -> Any |
Render onto transparent pixels and always end the owned painter. |