
    ch'!                        % S r SSKJr  SSKJrJrJrJr  SSKJ	r	  SSK
Jr  SSKJrJrJrJrJr  SSKJr  SSKJr  SS	KJr  \(       a  SS
KJr  \\S   \S4   rS\S'    " S S5      rg)zImage marshalling.    )annotations)TYPE_CHECKINGLiteralUnioncast)	TypeAlias)show_deprecation_warning)ChannelsImageFormatOrAutoImageOrImageListWidthBehaviormarshall_images)StreamlitAPIException)	ImageList)gather_metrics)DeltaGenerator)autoalwaysneverNr   UseColumnWithc                      \ rS rSr\" S5            S	SS.                 S
S jjj5       r\SS j5       rSrg)
ImageMixin.   imageNF)use_container_widthc          
     $   USL a  Ub  [        SS5      eUb  US::  a  [        R                  OUn	UbZ  [        S5        US:X  a  [        R                  n	OmUS:X  d  USL a  [        R
                  n	OQUS:X  d  US	L a  [        R                  n	O5USL a  [        R                  n	OU	b  U	S:  a  OUS	L a  [        R                  n	[        5       n
[        U R                  R                  5       UUU	U
UUU5        U R                  R                  S
U
5      $ )a	  Display an image or list of images.

Parameters
----------
image : numpy.ndarray, BytesIO, str, Path, or list of these
    The image to display. This can be one of the following:

    - A URL (string) for a hosted image.
    - A path to a local image file. The path can be a ``str``
      or ``Path`` object. Paths can be absolute or relative to the
      working directory (where you execute ``streamlit run``).
    - An SVG string like ``<svg xmlns=...</svg>``.
    - A byte array defining an image. This includes monochrome images of
      shape (w,h) or (w,h,1), color images of shape (w,h,3), or RGBA
      images of shape (w,h,4), where w and h are the image width and
      height, respectively.
    - A list of any of the above. Streamlit displays the list as a
      row of images that overflow to additional rows as needed.
caption : str or list of str
    Image caption(s). If this is ``None`` (default), no caption is
    displayed. If ``image`` is a list of multiple images, ``caption``
    must be a list of captions (one caption for each image) or
    ``None``.

    Captions can optionally contain GitHub-flavored Markdown. Syntax
    information can be found at: https://github.github.com/gfm.

    See the ``body`` parameter of |st.markdown|_ for additional,
    supported Markdown directives.

    .. |st.markdown| replace:: ``st.markdown``
    .. _st.markdown: https://docs.streamlit.io/develop/api-reference/text/st.markdown
width : int or None
    Image width. If this is ``None`` (default), Streamlit will use the
    image's native width, up to the width of the parent container.
    When using an SVG image without a default width, you should declare
    ``width`` or use ``use_container_width=True``.
use_column_width : "auto", "always", "never", or bool
    If "auto", set the image's width to its natural size,
    but do not exceed the width of the column.
    If "always" or True, set the image's width to the column width.
    If "never" or False, set the image's width to its natural size.
    Note: if set, `use_column_width` takes precedence over the `width` parameter.
clamp : bool
    Whether to clamp image pixel values to a valid range (0-255 per
    channel). This is only used for byte array images; the parameter is
    ignored for image URLs and files. If this is ``False`` (default)
    and an image has an out-of-range value, a ``RuntimeError`` will be
    raised.
channels : "RGB" or "BGR"
    The color format when ``image`` is an ``nd.array``. This is ignored
    for other image types. If this is ``"RGB"`` (default),
    ``image[:, :, 0]`` is the red channel, ``image[:, :, 1]`` is the
    green channel, and ``image[:, :, 2]`` is the blue channel. For
    images coming from libraries like OpenCV, you should set this to
    ``"BGR"`` instead.
output_format : "JPEG", "PNG", or "auto"
    The output format to use when transferring the image data. If this
    is ``"auto"`` (default), Streamlit identifies the compression type
    based on the type and format of the image. Photos should use the
    ``"JPEG"`` format for lossy compression while diagrams should use
    the ``"PNG"`` format for lossless compression.

use_container_width : bool
    Whether to override ``width`` with the width of the parent
    container. If ``use_container_width`` is ``False`` (default),
    Streamlit sets the image's width according to ``width``. If
    ``use_container_width`` is ``True``, Streamlit sets the width of
    the image to match the width of the parent container.

.. deprecated::
    ``use_column_width`` is deprecated and will be removed in a future
    release. Please use the ``use_container_width`` parameter instead.

Example
-------
>>> import streamlit as st
>>> st.image("sunrise.jpg", caption="Sunrise by the mountains")

.. output::
   https://doc-image.streamlit.app/
   height: 710px

TzL`use_container_width` and `use_column_width` cannot be set at the same time.zLPlease utilize `use_container_width` since `use_column_width` is deprecated.r   zThe `use_column_width` parameter has been deprecated and will be removed in a future release. Please utilize the `use_container_width` parameter instead.r   r   r   Fimgs)r   r   ORIGINALr	   AUTOCOLUMNMAX_IMAGE_OR_CONTAINERMIN_IMAGE_OR_CONTAINERImageListProtor   dg_get_delta_path_str_enqueue)selfr   captionwidthuse_column_widthclampchannelsoutput_formatr   image_widthimage_list_protos              kC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\streamlit/elements/image.pyr   ImageMixin.image/   s+   H $&+;+G'^^  (-}
M"" 	 '$c
  6)+00!X-1AT1I+22!W,0@E0I+44 D('>>K$q  E)'>>K)+GG'')		
 ww(899    c                    [        SU 5      $ )zGet our DeltaGenerator.r   )r   )r'   s    r0   r$   ImageMixin.dg   s     $d++r2    )NNNFRGBr   )r   r   r(   zstr | list[str] | Noner)   z
int | Noner*   r   r+   boolr,   r
   r-   r   r   r7   returnr   )r8   r   )	__name__
__module____qualname____firstlineno__r   r   propertyr$   __static_attributes__r5   r2   r0   r   r   .   s    G +/ *."+1N: %*N:N:
 (N: N: (N: N: N: )N: "N: 
N: N:` , ,r2   r   )__doc__
__future__r   typingr   r   r   r   typing_extensionsr   streamlit.deprecation_utilr	   "streamlit.elements.lib.image_utilsr
   r   r   r   r   streamlit.errorsr   streamlit.proto.Image_pb2r   r#   streamlit.runtime.metrics_utilr   streamlit.delta_generatorr   r7   r   __annotations__r   r5   r2   r0   <module>rJ      s\   (  " 6 6 ' ?  3 A 98 )B!CT4!OPy PU, U,r2   