Usage
Signature
Parameters
A path or URL to an image, a file-like object (opened in binary mode), or array-like object.
The alt text of the image.
The width of the image in pixels or a string with units.
The height of the image in pixels or a string with units.
Whether to round the corners of the image.
A dictionary of CSS styles to apply to the image.
The caption of the image.
Returns
Html
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