Usage
Signature
Parameters
ImageLike
required
A path or URL to an image, a file-like object (opened in binary mode), or array-like object.
Optional[str]
default:"None"
The alt text of the image.
Optional[Union[int, str]]
default:"None"
The width of the image in pixels or a string with units.
Optional[Union[int, str]]
default:"None"
The height of the image in pixels or a string with units.
bool
default:"False"
Whether to round the corners of the image.
Optional[dict[str, Any]]
default:"None"
A dictionary of CSS styles to apply to the image.
Optional[str]
default:"None"
The caption of the image.
Returns
An
Html object.Supported Input Types
Thesrc parameter accepts:
str: Path or URL to an imagebytes: Image data as bytesio.BytesIO: File-like object in binary modeio.BufferedReader: Buffered file readerPath: pathlib.Path object- Array-like objects: lists, numpy arrays, torch tensors, jax arrays, scipy sparse matrices