Example #1
0
def get_gray_profile_resource():
    """Returns named temporary file object of built-in Gray profile.

    :return: path to built-in Gray profile
    """
    import gray_profile_rc
    return gray_profile_rc.get_resource(True)
Example #2
0
def cms_create_gray_profile():
    """	
	Artificial functionality. The function emulates built-in Gray
	profile reading profile resource attached to the package.
	Returns a handle to lcms built-in Gray 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 gray_profile_rc
    profile = gray_profile_rc.get_resource(True)
    return cms_open_profile_from_file(profile.name)
Example #3
0
def cms_create_gray_profile():
	"""	
	Artificial functionality. The function emulates built-in Gray
	profile reading profile resource attached to the package.
	Returns a handle to lcms built-in Gray 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 gray_profile_rc
	profile = gray_profile_rc.get_resource(True)
	return cms_open_profile_from_file(profile.name)
Example #4
0
def get_gray_profile_resource():
	"""
	Returns named temporary file object of built-in Gray profile.
	"""
	import gray_profile_rc
	return gray_profile_rc.get_resource(True)