layeredimage/io/__init__.py
def saveLayerImage(fileName: str, layeredImage: LayeredImage) -> None:
	"""Save a layered image to a file.

	Args:
		fileName (str): path/ filename
		layeredImage (LayeredImage): the layered image to save

	Raises:
		ValueError: If the extention is not recognised

	Returns:
		None
	"""
	functionMap = {
		"ora": saveLayer_ORA,
		"psd": saveLayer_PSD,
		"xcf": saveLayer_XCF,
		"pdn": saveLayer_PDN,
		"tif": saveLayer_TIFF,
		"tiff": saveLayer_TIFF,
		"webp": saveLayer_WEBP,
		"gif": saveLayer_GIF,
		"lsr": saveLayer_LSR,
		"layered": saveLayer_LAYERED,
		"layeredc": saveLayer_LAYEREDC,
	}
	fileExt = fileName.split(".")[-1].lower()
	if fileExt not in functionMap:
		extNotRecognised(fileName)
		raise ValueError
	return functionMap[fileExt](fileName, layeredImage)
Save a layered image to a file.

	Args:
		fileName (str): path/ filename
		layeredImage (LayeredImage): the layered image to save

	Raises:
		ValueError: If the extention is not recognised

	Returns:
		None
	
Save a layered image to a file.
Save a layered image to a file .
def saveLayerImage(fileName: str, layeredImage: LayeredImage) -> None:
	functionMap = {
		"ora": saveLayer_ORA,
		"psd": saveLayer_PSD,
		"xcf": saveLayer_XCF,
		"pdn": saveLayer_PDN,
		"tif": saveLayer_TIFF,
		"tiff": saveLayer_TIFF,
		"webp": saveLayer_WEBP,
		"gif": saveLayer_GIF,
		"lsr": saveLayer_LSR,
		"layered": saveLayer_LAYERED,
		"layeredc": saveLayer_LAYEREDC,
	}
	fileExt = fileName.split(".")[-1].lower()
	if fileExt not in functionMap:
		extNotRecognised(fileName)
		raise ValueError
	return functionMap[fileExt](fileName, layeredImage)
def saveLayerImage ( fileName : str , layeredImage : LayeredImage ) -> None : functionMap = { "ora" : saveLayer_ORA , "psd" : saveLayer_PSD , "xcf" : saveLayer_XCF , "pdn" : saveLayer_PDN , "tif" : saveLayer_TIFF , "tiff" : saveLayer_TIFF , "webp" : saveLayer_WEBP , "gif" : saveLayer_GIF , "lsr" : saveLayer_LSR , "layered" : saveLayer_LAYERED , "layeredc" : saveLayer_LAYEREDC , } fileExt = fileName . split ( "." ) [ - 1 ] . lower ( ) if fileExt not in functionMap : extNotRecognised ( fileName ) raise ValueError return functionMap [ fileExt ] ( fileName , layeredImage )
Save a layered image to a file.
Save a layered image to a file .
"""Save a layered image to a file.

	Args:
		fileName (str): path/ filename
		layeredImage (LayeredImage): the layered image to save

	Raises:
		ValueError: If the extention is not recognised

	Returns:
		None
	"""
None
If the extention is not recognised
If the extention is not recognised
ValueError
fileName
str
None
layeredImage
LayeredImage
the layered image to save
the layered image to save