
    RNj                         d dl Z dZd Zy)    Ni  c                     | j                   d d \  }}t        ||      }|t        k  r| S t        |z  }t        ||z        }t        ||z        }t	        j
                  | ||ft        j                        }|S )N   )interpolation)shapemaxMAX_IMAGE_SIDEintcv2resize
INTER_AREA)imageheightwidthmax_sidescale	new_width
new_heightresizeds           2F:\Balli\ai-photo-editor\app\utils\image_resize.pyresize_large_imager      s{    KKOMFE65!H>!X%EEEM"IVe^$Jjj	JnnG N    )r
   r   r    r   r   <module>r      s    
 r   