yera.runtime.handlers.image.ansi
ANSI handler for image output.
Symbols
ANSIImageHandler
Inherits:
BaseHandlerSubclasses:
KittyImageHandlerRender a concise image placeholder in unsupported terminals.
Methods
ANSIImageHandler.__init__
__init__(
console: Console,
) → NoneInitialize the image fallback with its destination console.
Parameters
console
type: Console
Rich console used to render image placeholders.
ANSIImageHandler.push
push(
event: OutputEvent,
) → NoneRender an image event as a textual placeholder.
Parameters
event
type: OutputEvent
Output event carrying encoded image data.
Raises
TypeError
If the event does not carry image data.