
    i                        S SK Jr  SSKJrJr   " S S\R                  5      r\R                  " \R                  \5        \R                  " \R                  S5        g)    )annotations   )Image	ImageFilec                  :    \ rS rSrSrSrS	S jrS	S jrS	S jrSr	g)
PcdImageFile   PCDzKodak PhotoCDc                   U R                   c   eU R                   R                  S5        U R                   R                  S5      nUR                  S5      (       d  Sn[	        U5      eUS   S-  nS U l        US:X  a  SU l        OUS:X  a  S	U l        S
U l        US;   a  SOSU l        [        R                  " SSS5      /U l
        g )Ni   i  s   PCD_znot a PCD filei     r   Z   i  RGB)r   r   )      r   r   pcd)r   r   r   r   i   )fpseekread
startswithSyntaxErrortile_post_rotate_mode_sizer   _Tiletile)selfsmsgorientations       Z/var/www/html/qgis-automation/mouza_env/lib/python3.13/site-packages/PIL/PcdImagePlugin.py_openPcdImageFile._open   s    ww"""TGGLL||G$$"Cc""gk $!$&D!A$'D!
#.&#8Zj
__U,<iHI	    c                    U R                   c@  U R                  (       a/  [        R                  R	                  U R
                  S5      U l        [        R                  R                  U 5        g )Nr   )	_imr   r   corenewmodeimr   load_preparer   s    r!   r+   PcdImageFile.load_prepare4   sB    88 5 5jjnnTYY
;DG((.r$   c                z    U R                   (       a*  U R                  U R                   SS9R                  U l        g g )NT)expand)r   rotater*   r,   s    r!   load_endPcdImageFile.load_end9   s0      kk$"7"7kEHHDG !r$   )r   r   r*   r   r   N)returnNone)
__name__
__module____qualname____firstlineno__formatformat_descriptionr"   r+   r1   __static_attributes__ r$   r!   r   r      s    F(J,/
Ir$   r   z.pcdN)	
__future__r    r   r   r   register_openr9   register_extensionr<   r$   r!   <module>rA      sP     # "I9&& "IP   L'' 6   ,,f 5r$   