def img(
        self,
        name,
        href=None,
        on_click=None,
        prompt=False,
        params=None,
        point_on_hover=True,
        height=None,
        width=None,
        alt_text=None,
        **kwargs,
    ):
        """Defines an image to display to the user as a :class:`ImageView`.

        Examples::

            import fiftyone.operators.types as types
            ctx.panel.state.my_img = "/path/to/my/image.jpg"

            panel = types.Object()
            panel.img(
                "my_img", # uses the value in ctx.panel.state.my_img
                href="https://path/to/navigate/to",
                on_click=self.do_something,
                prompt=False,
                params={"foo": "bar"},
                point_on_hover=True,
                height="100px",
                width="100px",
                alt_text="My image alt text"
            )

        Args:
            name: the name of the state variable to use as the image source
            href (None): the url to navigate to when the image is clicked
            on_click (None): the name of the operator to execute when the button is clicked
            prompt (False): whether to prompt the user before executing the operator
            params (None): the parameters to pass to the operator
            point_on_hover (True): whether to show a pointer when hovering over the image
            height (None): the height of the image
            width (None): the width of the image
            alt_text (None): the alt text of the image

        """
        img = ImageView(
            href=href,
            operator=on_click,
            params=params,
            prompt=prompt,
            cursor=point_on_hover,
            height=height,
            width=width,
            alt=alt_text,
            **kwargs,
        )

        return self.view(name, img)
Defines an image to display to the user as a :class:`ImageView`.

        Examples::

            import fiftyone.operators.types as types
            ctx.panel.state.my_img = "/path/to/my/image.jpg"

            panel = types.Object()
            panel.img(
                "my_img", # uses the value in ctx.panel.state.my_img
                href="https://path/to/navigate/to",
                on_click=self.do_something,
                prompt=False,
                params={"foo": "bar"},
                point_on_hover=True,
                height="100px",
                width="100px",
                alt_text="My image alt text"
            )

        Args:
            name: the name of the state variable to use as the image source
            href (None): the url to navigate to when the image is clicked
            on_click (None): the name of the operator to execute when the button is clicked
            prompt (False): whether to prompt the user before executing the operator
            params (None): the parameters to pass to the operator
            point_on_hover (True): whether to show a pointer when hovering over the image
            height (None): the height of the image
            width (None): the width of the image
            alt_text (None): the alt text of the image

        
fiftyone/operators/types.py