python (3.12.0)

(root)/
lib/
python3.12/
email/
mime/
__pycache__/
image.cpython-312.opt-1.pyc

ˑedZdgZddlmZddlmZGddeZgZdZdZ	e	dZ
e	d	Ze	d
Ze	dZ
e	dZe	d
Ze	dZe	dZe	dZe	dZe	dZe	dZe	dZy)z/Class representing image/* type MIME documents.	MIMEImage)encoders)MIMENonMultipartc6eZdZdZdej
fdddZy)rz1Class for generating image/* type MIME documents.N)policyc|t|n|}|tdtj|d|fd|i||j	|||y)aCreate 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 subtypeimager)_what	TypeErrorr__init__set_payload)self
_imagedata_subtype_encoderr_paramss      D/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/email/mime/image.pyrzMIMEImage.__init__s_*)1(85$h@AA!!$	-&	-$+	-$)__name__
__module____qualname____doc__r
encode_base64rrrrr
s;,0"00<@rc6tD]}||x}s|cSyN)_rules)dataruleress   rr
r
2s*t*3Jrc0tj||Sr)rappend)rulefuncs rrr:s
MM(Orc&|dddvry|dddk(ryy)z1JPEG data with JFIF or Exif markers; and raw JPEG
)sJFIFsExifjpegNsrhs r_jpegr+?s-	2w$$	
2A%	%
&rc(|jdryy)NsPNG

png
startswithr)s r_pngr0Hs||()*rc|dddvryy)zGIF ('87 and '89 variants)Nr%)sGIF87asGIF89agifrr)s r_gifr3Ns	!u&&'rc|dddvryy)z-TIFF (can be in Motorola or Intel byte order)N)sMMsIItiffrr)s r_tiffr7Us	!urc(|jdryy)zSGI image librarysrgbNr.r)s r_rgbr:\	||K !rcft|dk\r#|dtdk(r|ddvr	|ddvryy	y	y	y	)
zPBM (portable bitmap)rPs14r5 	

pbmNlenordr)s r_pbmrEcG1v{
aDCI!A$%-AaDJ4F5G-rcft|dk\r#|dtdk(r|ddvr	|ddvryy	y	y	y	)
zPGM (portable graymap)r=rr>r?s25r5r@pgmNrBr)s r_pgmrIkrFrcft|dk\r#|dtdk(r|ddvr	|ddvryy	y	y	y	)
zPPM (portable pixmap)r=rr>r?s36r5r@ppmNrBr)s r_ppmrLsrFrc(|jdryy)zSun raster filesYjrastNr.r)s r_rastrO{s	||'()rc(|jdryy)zX bitmap (X10 or X11)s#define xbmNr.r)s r_xbmrRr;rc(|jdryy)NsBMbmpr.r)s r_bmprUs||Erc:|jdr
|dddk(ryyy)NsRIFFsWEBPwebpr.r)s r_webprZs&||G1RG!3"4rc(|jdryy)Nsv/1exrr.r)s r_exrr]s||'()rN)r__all__emailremail.mime.nonmultipartrrrr
rr+r0r3r7r:rErIrLrOrRrUrZr]rrr<module>ras:
6-4 B




r