euporie.core.convert.formats.common
Contain functions which can be used to convert data to multiple formats.
Functions
|
Convert base64 encoded data to bytes. |
|
Call the command as a subprocess and return it's output as bytes. |
|
Convert image data to ANSI text using chafa. |
|
Convert image data to ANSI text using ::chafa.py. |
|
Get the current active (running) Application. |
|
Convert image data to PNG bytes using |
- async euporie.core.convert.formats.common.base64_to_bytes_py(datum: Datum, cols: int | None = None, rows: int | None = None, fg: str | None = None, bg: str | None = None, extend: bool = True) bytes
Convert base64 encoded data to bytes.
- async euporie.core.convert.formats.common.chafa_convert_cmd(output_format: str, datum: Datum, cols: int | None = None, rows: int | None = None, fg: str | None = None, bg: str | None = None, extend: bool = True) str | bytes
Convert image data to ANSI text using chafa.
- async euporie.core.convert.formats.common.chafa_convert_py(output_format: Literal['symbols', 'sixels', 'kitty', 'iterm2'], datum: Datum, cols: int | None = None, rows: int | None = None, fg: str | None = None, bg: str | None = None, extend: bool = True) str | bytes
Convert image data to ANSI text using ::chafa.py.