save#

Image.save(**kwargs)#

Save the image payload, converting to PNG when appropriate.

Non-enhanced images are stored as PNG files, while enhanced images retain their original format. The file name is derived from the item GUID.

Parameters:
**kwargs

Keyword arguments forwarded to the database save method of the underlying ORM instance. For eg: The using argument can be used to select the target database alias.

Raises:
IntegrityError

If the database reports an integrity violation while saving.

InvalidFieldError

If invalid field names or values are supplied (via decorator).

ADRException

If an error occurs during image conversion.

Exception

Any other unexpected exception is propagated unchanged.