rich_art::image_art: ImageArt, the picker across every backend.
ArtImage
open
staticmethod
open(path: Any) -> ArtImage
from_bytes
staticmethod
from_bytes(data: Union[bytes, bytearray, memoryview]) -> ArtImage
from_pil
staticmethod
from_pil(image: Any) -> ArtImage
frombytes
staticmethod
frombytes(mode: Literal['RGBA', 'RGB', 'LA', 'L'], size: Tuple[int, int], data: Union[bytes, bytearray, memoryview]) -> ArtImage
ImageArt
background
property
background: Union[None, str, Tuple[int, int, int]]
max_height
property
max_height: Optional[int]
resolve_mode
resolve_mode(capabilities: RenderCapabilities) -> str
native_grid
native_grid(mode: str, available: int) -> Tuple[int, int]
ImageArtError
Bases: ArtError
An image cannot be rendered as asked; kind says why.
ImageDecodeError
Bases: ArtError
Image bytes could not be decoded.
RenderCapabilities
sixel_supported
instance-attribute
from_console
staticmethod
from_console(console: Console) -> RenderCapabilities