Your IP : 18.191.154.143


Current Path : /opt/alt/python313/lib64/python3.13/email/mime/__pycache__/
Upload File :
Current File : //opt/alt/python313/lib64/python3.13/email/mime/__pycache__/image.cpython-313.pyc

�

*}g����SrS/rSSKJr SSKJr "SS\5r/rSrSr	\	S5r
\	S	5r\	S
5r\	S5r
\	S5r\	S
5r\	S5r\	S5r\	S5r\	S5r\	S5r\	S5r\	S5rg)z/Class representing image/* type MIME documents.�	MIMEImage�)�encoders)�MIMENonMultipartc�B�\rSrSrSrS\R4SS.SjjrSrg)r�
z1Class for generating image/* type MIME documents.N)�policyc��Uc[U5OUnUc[S5e[R"USU4SU0UD6 UR	U5 U"U5 g)alCreate an image/* type MIME document.

_imagedata contains the bytes for the raw image data.  If the data
type can be detected (jpeg, png, gif, tiff, rgb, pbm, pgm, ppm,
rast, xbm, bmp, webp, and exr attempted), then the subtype will be
automatically included in the Content-Type header. Otherwise, you can
specify the specific image subtype via the _subtype parameter.

_encoder is a function which will perform the actual encoding for
transport of the image data.  It takes one argument, which is this
Image instance.  It should use get_payload() and set_payload() to
change the payload to the encoded form.  It should also add any
Content-Transfer-Encoding or other headers to the message as
necessary.  The default encoding is Base64.

Any additional keyword arguments are passed to the base class
constructor, which turns them into parameters on the Content-Type
header.
Nz"Could not guess image MIME subtype�imager)�_what�	TypeErrorr�__init__�set_payload)�self�
_imagedata�_subtype�_encoderr�_paramss      �7/opt/alt/python313/lib64/python3.13/email/mime/image.pyr
�MIMEImage.__init__s_��*)1�(8�5��$�h�����@�A�A��!�!�$���	-�&�	-�$+�	-�����$�����)	�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�
encode_base64r
�__static_attributes__rrrrr
s#��;�,0�"�0�0��<@��rc�D�[HnU"U5=n(dMUs $ g�N)�_rules)�data�rule�ress   rrr2s%�����t�*��3���J��rc�0�[RU5 U$r )r!�append)�rulefuncs rr#r#:s��
�M�M�(���Orc�,�USSS;agUSSS:Xagg)z1JPEG data with JFIF or Exif markers; and raw JPEG��
)sJFIFsExif�jpegN�s���r��hs r�_jpegr/?s-��	��2�w�$�$��	
�2�A��%�	%��
&rc�2�URS5(agg)Ns�PNG

�png��
startswithr-s r�_pngr4Hs���|�|�(�)�)��*rc��USSS;agg)zGIF ('87 and '89 variants)Nr))sGIF87asGIF89a�gifrr-s r�_gifr7Ns��	��!�u�&�&��'rc��USSS;agg)z-TIFF (can be in Motorola or Intel byte order)N�)sMMsII�tiffrr-s r�_tiffr;Us��	��!�u����rc�2�URS5(agg)zSGI image librarys��rgbNr2r-s r�_rgbr>\���	�|�|�K� � ��!rc�r�[U5S:�a(US[S5:XaUSS;aUSS;agg	g	g	g	)
zPBM (portable bitmap)�r�P�s14r9� 	

�pbmN��len�ordr-s r�_pbmrIc�G���1�v��{�
�a�D�C��I��!�A�$�%�-�A�a�D�J�4F��5G�-��rc�r�[U5S:�a(US[S5:XaUSS;aUSS;agg	g	g	g	)
zPGM (portable graymap)rArrBrCs25r9rD�pgmNrFr-s r�_pgmrMkrJrc�r�[U5S:�a(US[S5:XaUSS;aUSS;agg	g	g	g	)
zPPM (portable pixmap)rArrBrCs36r9rD�ppmNrFr-s r�_ppmrPsrJrc�2�URS5(agg)zSun raster filesY�j��rastNr2r-s r�_rastrS{s��	�|�|�'�(�(��)rc�2�URS5(agg)zX bitmap (X10 or X11)s#define �xbmNr2r-s r�_xbmrV�r?rc�2�URS5(agg)NsBM�bmpr2r-s r�_bmprY�s���|�|�E����rc�F�URS5(aUSSS:Xaggg)NsRIFF��sWEBP�webpr2r-s r�_webpr^�s)���|�|�G����1�R��G�!3��"4�rc�2�URS5(agg)Nsv/1�exrr2r-s r�_exrra�s���|�|�'�(�(��)rN)r�__all__�emailr�email.mime.nonmultipartrrr!rr#r/r4r7r;r>rIrMrPrSrVrYr^rarrr�<module>res:��
6��-���4�� ��B
����
��������
������������������������������������
����
���r

?>