/
proc
/
1553489
/
root
/
usr
/
local
/
lib
/
python3.12
/
site-packages
/
PIL
/
__pycache__
/
File Upload :
llllll
Current File: //proc/1553489/root/usr/local/lib/python3.12/site-packages/PIL/__pycache__/ImageCms.cpython-312.pyc
� &ٜg� � � � d dl mZ d dlZd dlZd dlmZmZ d dlmZ d dl m Z mZmZm Z mZ ddlmZmZ ddlmZ dd lmZ dd lmZ eeee ej4 df Zd Z!dZ"dNd�Z# G d� de� Z$ G d� de� Z% G d� de� Z& eejN e&� Z(i dd�dd�dd�dd�dd�dd �d!d"�d#d$�d%d&�d'd(�d)d*�d+d,�d-d,�d.d/�d0d1�d2d3�d4d5�d6d7� i�Z) G d8� d� Z* G d9� d:ejV � Z,dOdPd;�Z- G d<� d=e.� Z/e$j` dd>e&jb f dQd?�Z2 dRd@�Z3e$j` e&jb f dSdA�Z4e$j` e$jj e&jl f dTdB�Z7e4Z8e7Z9 dU dVdC�Z: dW dXdD�Z;dYdE�Z<dYdF�Z=dYdG�Z>dYdH�Z?dYdI�Z@dYdJ�ZAdZdK�ZB d[dL�ZCd\dM�ZDy# e$ r#ZddlmZ ej@ e� ZY dZ[���dZ[ww xY w)]� )�annotationsN)�IntEnum�IntFlag)�reduce)�Any�Literal� SupportsFloat�SupportsInt�Union� )�Image�__version__)� deprecate)�SupportsRead)�_imagingcms�ImageCmsProfile)� DeferredErrora| pyCMS a Python / PIL interface to the littleCMS ICC Color Management System Copyright (C) 2002-2003 Kevin Cazabon kevin@cazabon.com https://www.cazabon.com pyCMS home page: https://www.cazabon.com/pyCMS littleCMS home page: https://www.littlecms.com (littleCMS is Copyright (C) 1998-2001 Marti Maria) Originally released under LGPL. Graciously donated to PIL in March 2009, for distribution under the standard PIL license The pyCMS.py module provides a "clean" interface between Python/PIL and pyCMSdll, taking care of some of the more complex handling of the direct pyCMSdll functions, as well as error-checking and making sure that all relevant data is kept together. While it is possible to call pyCMSdll functions directly, it's not highly recommended. Version History: 1.0.0 pil Oct 2013 Port to LCMS 2. 0.1.0 pil mod March 10, 2009 Renamed display profile to proof profile. The proof profile is the profile of the device that is being simulated, not the profile of the device which is actually used to display/print the final simulation (that'd be the output profile) - also see LCMSAPI.txt input colorspace -> using 'renderingIntent' -> proof colorspace -> using 'proofRenderingIntent' -> output colorspace Added LCMS FLAGS support. Added FLAGS["SOFTPROOFING"] as default flag for buildProofTransform (otherwise the proof profile/intent would be ignored). 0.1.0 pil March 2009 - added to PIL, as PIL.ImageCms 0.0.2 alpha Jan 6, 2002 Added try/except statements around type() checks of potential CObjects... Python won't let you use type() on them, and raises a TypeError (stupid, if you ask me!) Added buildProofTransformFromOpenProfiles() function. Additional fixes in DLL, see DLL code for details. 0.0.1 alpha first public release, Dec. 26, 2002 Known to-do list with current version (of Python interface, not pyCMSdll): none z 1.0.0 pilc � � | dk( rt dd� t S | dk( rt dd� t S | dk( rt ddd� t S d t � d | � d�}t |� �)N�DESCRIPTIONzPIL.ImageCms.DESCRIPTION� �VERSIONzPIL.ImageCms.VERSION�FLAGSzPIL.ImageCms.FLAGSzPIL.ImageCms.Flagszmodule 'z' has no attribute '�')r �_DESCRIPTION�_VERSION�_FLAGS�__name__�AttributeError)�name�msgs �7/usr/local/lib/python3.12/site-packages/PIL/ImageCms.py�__getattr__r"