U
    ?h                     @   sV   d dgZ ddlmZ zddlZW n ek
r<   edY nX 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k	rt||}|S )zhLoad an image from file.

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

    N)_imreadr   r   )fnameZdtypeZim r   S/var/www/html/venv/lib/python3.8/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.
    )Z	formatstr)r   r   )r   Zarr
format_strr   r   r	   r      s    )N)N)__all__Z
util.dtyper   r   r   ImportErrorr   r   r   r   r	   <module>   s   
