Ejemplo n.º 1
0
def get_srgb_profile_resource():
    """Returns named temporary file object of built-in sRGB profile.

    :return: path to sRGB profile
    """
    import srgb_profile_rc
    return srgb_profile_rc.get_resource(True)
Ejemplo n.º 2
0
def cms_create_srgb_profile():
    """	
	Artificial functionality. The function emulates built-in sRGB
	profile reading profile resource attached to the package.
	Returns a handle to lcms built-in sRGB profile wrapped as a Python object. 
	The handle doesn't require to be closed after usage because
	on object delete operation Python calls native cms_close_profile()
	function automatically
	"""
    import srgb_profile_rc
    profile = srgb_profile_rc.get_resource(True)
    return cms_open_profile_from_file(profile.name)
Ejemplo n.º 3
0
def cms_create_srgb_profile():
	"""	
	Artificial functionality. The function emulates built-in sRGB
	profile reading profile resource attached to the package.
	Returns a handle to lcms built-in sRGB profile wrapped as a Python object. 
	The handle doesn't require to be closed after usage because
	on object delete operation Python calls native cms_close_profile()
	function automatically
	"""
	import srgb_profile_rc
	profile = srgb_profile_rc.get_resource(True)
	return cms_open_profile_from_file(profile.name)
Ejemplo n.º 4
0
def get_srgb_profile_resource():
	"""
	Returns named temporary file object of built-in sRGB profile.
	"""
	import srgb_profile_rc
	return srgb_profile_rc.get_resource(True)