Files
intellecton/venv/lib/python3.12/site-packages/PIL/__pycache__/features.cpython-312.pyc
T

111 lines
13 KiB
Plaintext
Raw Normal View History

Ë
ß¼j*ã óüUddlmZddlZddlZddlZddlZddlmZddlZddl m
Z
dddd d
d d œZ d*d
Z d+dZ
d,dZdddddœZd*dZd+dZd,dZddddddddd œZd!ed"<d-d#„Zd+d$„Zd,d%„Zd-d&„Zd+d'„Zd,d(„Zd.d/d)„Zy)0é)Ú annotationsN)ÚIOé)ÚImage)ú PIL._imagingÚPILLOW_VERSION)zPIL._tkinter_finderÚ
tk_version)úPIL._imagingftÚfreetype2_version)zPIL._imagingcmsÚlittlecms_version)z PIL._webpÚwebpdecoder_version)z PIL._avifÚlibavif_version)ÚpilÚtkinterÚ freetype2Ú
littlecms2ÚwebpÚavifcóà|tvrd|}t|«t|\}} t|«y#t$rYyt$r(}t j t|««Yd}~yd}~wwxYw)
Checks if a module is available.
:param feature: The module to check for.
:returns: ``True`` if available, ``False`` otherwise.
:raises ValueError: If the module is not defined in this version of Pillow.
zUnknown module TFN)ÚmodulesÚ
ValueErrorÚ
__import__ÚModuleNotFoundErrorÚ ImportErrorÚwarningsÚwarnÚstr)ÚfeatureÚmsgÚmoduleÚverÚexs úO/home/antigravity/intellecton/venv/lib/python3.12/site-packages/PIL/features.pyÚ check_moduler$snð”gÑØ ˜yÐܘ‹oÐä˜"K€FˆÜØøÜ òÙÜ òÜ
”c˜"“gÔÜûðús¦ 2² A-½A-ÁA(Á(A-cóbt|«syt|\}}tt||g¬«|«S)
:param feature: The module to check for.
:returns:
The loaded version number as a string, or ``None`` if unknown or not available.
:raises ValueError: If the module is not defined in this version of Pillow.
Úfromlist)r$rÚgetattrr)rr r!s r#Úversion_moduler)/s3ô ˜Ô Øä˜"K€Fˆ ”:˜¨uÔ5°sÓ cóLtDcgc]}t|«sŒ|Œc}Scc}w)z4
:returns: A list of all supported modules.
)rr$©Úfs r#Úget_supported_modulesr.>sôÖ 2!¤,¨q¥/ŠAÒ 2ùÒ !š!)ÚjpegÚjpeglib)Újpeg2kÚjp2klib)ÚzipÚzlib)Úlibtiffr6)ÚjpgÚjpg_2000r5r6có†|tvrd|}t|«t|\}}|dttj«vS)
Checks if a codec is available.
:param feature: The codec to check for.
:returns: ``True`` if available, ``False`` otherwise.
:raises ValueError: If the codec is not defined in this version of Pillow.
zUnknown codec Ú_encoder)ÚcodecsrÚdirrÚcore)rrÚcodecÚlibs r#Ú check_codecr@MsIð”fÑØ˜w˜iÐܘ‹oÐä˜J€Eˆ3àˆW ¤¤U§Z¡Z£Ð 0r*cóÆt|«syt|\}}ttj|d«}|dk(r&|j d«dj d«dS|S)a
:param feature: The codec to check for.
:returns:
The version number as a string, or ``None`` if not available.
Checked at compile time for ``jpg``, run-time otherwise.
:raises ValueError: If the codec is not defined in this version of Pillow.
_versionr6ú
rzVersion r)r@r;r(rr=Úsplit)rr>r?Úversions r#Ú
version_codecrF^sdô  Øä˜J€Eˆ3ä”e—jj S Ð"2Ó3€GàØ}‰}˜" %×+¨JÓ7¸Ñ €Nr*cóLtDcgc]}t|«sŒ|Œc}Scc}w)z3
:returns: A list of all supported codecs.
)r;r@r,s r#Úget_supported_codecsrHssôÖ 0¨Q¥ŠAÒ 0ùÒ 0r/)r
Ú HAVE_RAQMÚ raqm_version)r
Ú HAVE_FRIBIDIÚfribidi_version)r
Ú
HAVE_HARFBUZZÚharfbuzz_version)rÚHAVE_LIBJPEGTURBOÚlibjpeg_turbo_version)rÚ HAVE_MOZJPEGrP)rÚ HAVE_ZLIBNGÚzlib_ng_version)rÚHAVE_LIBIMAGEQUANTÚimagequant_version)rÚHAVE_XCBN)ÚraqmÚfribidiÚharfbuzzÚ
libjpeg_turboÚmozjpegÚzlib_ngÚ
libimagequantÚxcbz&dict[str, tuple[str, str, str | None]]Úfeaturescóþ|tvrd|}t|«t|\}}} t|dg¬«}t||«S#t$rYyt
$r(}t
jt|««Yd}~yd}~wwxYw)zÿ
Checks if a feature is available.
:param feature: The feature to check for.
:returns: ``True`` if available, ``False`` if unavailable, ``None`` if unknown.
:raises ValueError: If the feature is not defined in this version of Pillow.
zUnknown feature ÚPILr&N) r_rrr(rrrrr)rrr Úflagr!Úimported_moduler"s r#Ú
check_featurerdsð”hÑØ    Ðܘ‹oÐä  Ñ€FˆDÜ$ V°u°gÔܨÓ-øÜ òÙÜ òÜ
”c˜"“gÔÜûðús§AÁ A<Á A<ÁA7Á7A<cójt|«syt|\}}}|ytt||g¬«|«S)
:param feature: The feature to check for.
:returns: The version number as a string, or ``None`` if not available.
:raises ValueError: If the feature is not defined in this version of Pillow.
Nr&)rdr_r(r)rr rbr!s r#Úversion_featurerfžs>ô ˜Ô ä  Ñ€FˆD
€{Øä ”:˜f°¨uÔ5°sÓ ;r*cóLtDcgc]}t|«sŒ|Œc}Scc}w)z5
:returns: A list of all supported features.
)r_rdr,s r#Úget_supported_featuresrh¯sô Ö 4!¤=°Õ#3ŠAÒ 4ùÒ 4r/có¬|tvr t|«S|tvr t|«S|tvr t |«St
jd|dd¬«y)
:param feature: A module, codec, or feature name.
:returns:
``True`` if the module, codec, or feature is available,
``False`` or ``None`` otherwise.
zUnknown feature 'z'.é)Ú
stacklevelF)rr$r;r@r_rdrr©rs r#ÚcheckrmsXð”'Ñܘ”&Ñܘ7Ó”(ÑܘWÓ ‡M% g Y¨bÐ1¸ r*cóv|tvr t|«S|tvr t|«S|tvr t |«Sy)
:param feature:
The module, codec, or feature to check for.
:returns:
The version number as a string, or ``None`` if unknown or not available.
N)rr)r;rFr_rfrls r#rErEÈs@ð”'Ñܘ”&Ñܘ”(Ñܘ r*có~t«}|jt««|jt««|S)zJ
:returns: A list of all supported modules, features, and codecs.
)r.ÚextendrhrH)Úrets r#Ú
get_supportedrrØs1ô
Ó
!€C؇J‡J €Jr*c ój |tj}tj«t d|¬«t dt
j |¬«tjj«}t d|dj«|¬«|ddD] }t d|j«|¬«Œ"t d|¬«t d tjxsd
|¬«tjtjk7rt d tj|¬«t d tj|¬«t d|¬«t d
tjjtj «|¬«t dtjjtj"j «|¬«t d|¬«dD\}}t%|«rÏd}|dk(r$t'd«}|t)d«rdnd}|d|zz
}| t|«}|…|dv}|dk(r$t+d|j-d«D««dk}|rdnd} |dk(rt'd«}
|
.|d|
zz
}n%|dk(r d D]} t'| «} | Œ|d!| d| z
}Œt d"|d#| ||¬«ŒÐt d"|d$|¬«Œàt d%|d&|¬«Œðt d|¬«|rÒt/j0t2«}
tj4j7«D]\}}|
|j9|«Œt;tj<«D]a}|}|tj>vr|dtj>|}t ||¬«||
vr7t d'jAd!jCt;|
|«««|¬«g}|tjDvr|j9d(«|tjFvr|j9d)«|tjHvr|j9d*«|tjJvr|j9d+«|tjLvr|j9d,«t d-jAd!jC|««|¬«t d|¬«Œdyy).a 
Prints information about this installation of Pillow.
This function can be called with ``python3 -m PIL``.
It can also be called with ``python3 -m PIL.report`` or ``python3 -m PIL --report``
to have "supported_formats" set to ``False``, omitting the list of all supported
image file formats.
:param out:
The output stream to print to. Defaults to ``sys.stdout`` if ``None``.
:param supported_formats:
If ``True``, a list of all supported image file formats will be printed.
NzD--------------------------------------------------------------------)ÚfilezPillow zPython rrz zPython executable is Úunknownz%Environment Python files loaded from z System Python files loaded from z"Python Pillow modules loaded from z"Binary Pillow modules loaded from )
)rzPIL CORE)rÚTKINTER)rÚ FREETYPE2)rÚ
LITTLECMS2)rÚWEBP)rÚAVIF)r7ÚJPEG)r8zOPENJPEG (JPEG2000))r5zZLIB (PNG/ZIP))r6ÚLIBTIFF)rWzRAQM (Bidirectional Text))r]z#LIBIMAGEQUANT (Quantization method))r^zXCB (X protocol)r7rZr[z
libjpeg-turboú )rr7rc3ó2K|]}t|«Œy­w)N)Úint)Ú.0Úxs r#ú <genexpr>zpilinfo.<locals>.<genexpr>(sèø€Ò*H°a¬3¨q¯6Ñ*Hùsú.)rjéz compiled forÚloadedr5r\z, compiled for zlib-ng rW)rXrYz, z---z support ok,z
support okz***zsupport not installedzExtensions: {}ÚopenÚsaveÚsave_allÚdecodeÚencodez Features: {})'ÚsysÚstdoutrÚinitÚprintraÚ __version__rEÚ