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
savemethod of the underlying ORM instance. For eg: Theusingargument can be used to select the target database alias.
- Raises:
IntegrityErrorIf the database reports an integrity violation while saving.
InvalidFieldErrorIf invalid field names or values are supplied (via decorator).
ADRExceptionIf an error occurs during image conversion.
ExceptionAny other unexpected exception is propagated unchanged.