o
    h                     @   sP   d dgZ ddlmZ zddlZW n ey   edw d	dd Zd	ddZdS )
imreadimsave   )_convert    NzfImread could not be foundPlease refer to http://pypi.python.org/pypi/imread/ for further instructions.c                 C   s    t | }|durt||}|S )zhLoad an image from file.

    Parameters
    ----------
    fname : str
        Name of input file

    N)_imreadr   r   )fnamedtypeim r
   \/var/www/html/scripts/venv/lib/python3.10/site-packages/skimage/io/_plugins/imread_plugin.pyr      s   
	
c                 C   s   t j| ||dS )a0  Save an image to disk.

    Parameters
    ----------
    fname : str
        Name of destination file.
    arr : ndarray of uint8 or uint16
        Array (image) to save.
    format_str : str,optional
        Format to save as.

    Notes
    -----
    Currently, only 8-bit precision is supported.
    )	formatstr)r   r   )r   arr
format_strr
   r
   r   r      s   )N)__all__
util.dtyper   r   r   ImportErrorr   r
   r
   r
   r   <module>   s    
