+
    ‡)ÙjT
  ã                   óF   € R t ^ RIt^ RIt^ RIHt  ! R R]4      tRR ltR# )zO
Utility functions for handling images.

Requires Pillow as you might imagine.
N)ÚFilec                   óJ   a € ] tR t^t o Rt]R 4       t]R 4       tR tRt	V t
R# )Ú	ImageFilezt
A mixin for use alongside django.core.files.base.File, which provides
additional features for dealing with images.
c                ó0   € V P                  4       ^ ,          # )é    ©Ú_get_image_dimensions©Úselfs   &ÚQ/var/www/eggtrainer/venv/lib/python3.14/site-packages/django/core/files/images.pyÚwidthÚImageFile.width   ó   € à×)Ñ)Ó+¨AÕ.Ð.ó    c                ó0   € V P                  4       ^,          # )é   r   r	   s   &r   ÚheightÚImageFile.height   r   r   c                ó˜   € \        V R 4      '       g.   V P                  pV P                  4        \        WR7      V n        V P                  # )Ú_dimensions_cache)Úclose)ÚhasattrÚclosedÚopenÚget_image_dimensionsr   )r
   r   s   & r   r   ÚImageFile._get_image_dimensions   s;   € Ü�tÐ0×1Ò1Ø—K‘KˆEØ�I‰IŒKÜ%9¸$Ô%LˆDÔ"Ø×%Ñ%Ð%r   )r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úpropertyr   r   r   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      s<   ø‡ € ñð
 ñ/ó ð/ð ñ/ó ð/÷&ð &r   r   c                óŠ  € ^ RI Hp VP                  4       p\        V R4      '       d%   T pVP	                  4       pVP                  ^ 4       M \        V R4      pRp Rp VP                  V4      pV'       g   Mo VP                  V4       TP                   '       dA   TP                   P"                  T'       d   TP%                  4        # TP                  X4       # T^,          pKŠ  RV'       d   VP%                  4        # VP                  X4       #   \         d    Ru # i ; i  \        P                   d4   pTP                  ^ ,          P                  R4      '       d    Rp?LÞh Rp?i\        P                   d     Lù\         d     ELi ; i  T'       d   TP%                  4        i TP                  X4       i ; i)	zž
Return the (width, height) of an image, given an open file or a path.  Set
'close' to True to close the file at the end if it is initially in an open
state.
)r   ÚreadÚrbNTi   zError -5)NN)ÚPILr   ÚParserr   ÚtellÚseekr   ÚOSErrorr&   ÚfeedÚzlibÚerrorÚargsÚ
startswithÚstructÚRuntimeErrorÚimageÚsizer   )	Úfile_or_pathr   ÚPillowImageFileÚpÚfileÚfile_posÚ
chunk_sizeÚdataÚes	   &&       r   r   r   #   se  € õ 1à×ÑÓ €AÜˆ|˜V×$Ò$ØˆØ—9‘9“;ˆØ�	‰	�!�ð	 Ü˜ dÓ+ˆDð ˆð# ð ˆ
ØØ—9‘9˜ZÓ(ˆDßØðØ—‘�t”ð" �w�wˆwØ—w‘w—|‘|÷ Ø�J‰J�Là�I‰I�hÕð ˜!�OŠJØçØ�J‰J�Là�I‰I�hÕøôM ô 	 ØÒð	 ûô —:‘:ô ð —6‘6˜!•9×'Ñ'¨
×3Ò3ÜàûÜ—<‘<ô ñ Üô ò ðû÷ Ø�J‰J�Là�I‰I�hÕús„   ÁD ÁF Á9F Á;D( ÂF ÂF ÃF ÄD%Ä$D%Ä(FÄ=(E+Å%F Å*E+Å+FÆFÆF ÆFÆFÆF ÆFÆF Æ,G)F)r    r2   r.   Údjango.core.filesr   r   r   © r   r   Ú<module>r@      s&   ðñó Û å "ô&�ô &ö,6 r   