euporie.core.convert.formats.sixel

Contain function which convert data to sixel format.

Functions

call_subproc(data, cmd[, use_tempfile, suffix])

Call the command as a subprocess and return it's output as bytes.

chafa_convert_cmd(output_format, data[, ...])

Convert image data to ANSI text using chafa.

chafa_convert_py(output_format, data[, ...])

Convert image data to ANSI text using ::chafa.py.

commands_exist(*cmds)

Verify a list of external commands exist on the system.

get_app()

Get the current active (running) Application.

have_modules(*modules)

Verify a list of python modules are importable.

imagemagick_convert(output_format, data[, ...])

Convert image data to PNG bytes using imagemagick.

pil_to_sixel_py_teimpy(data[, cols, rows, ...])

Convert a pillow image to sixels teimpy.

pil_to_sixel_py_timg(data[, cols, rows, fg, ...])

Convert a pillow image to sixels timg.

png_to_sixel_img2sixel(data[, cols, rows, ...])

Convert PNG data to sixels img2sixel.

register(from_, to[, filter_, weight])

Add a converter to the centralized format conversion system.

Classes

partial

partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords.

async euporie.core.convert.formats.sixel.pil_to_sixel_py_teimpy(data: PilImage, cols: int | None = None, rows: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str

Convert a pillow image to sixels teimpy.

async euporie.core.convert.formats.sixel.pil_to_sixel_py_timg(data: PilImage, cols: int | None = None, rows: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str

Convert a pillow image to sixels timg.

async euporie.core.convert.formats.sixel.png_to_sixel_img2sixel(data: bytes, cols: int | None = None, rows: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str

Convert PNG data to sixels img2sixel.