undo

open override fun undo(): Result<ImageRef>

Reverts the last cleanup operation. If no operations are available to undo, returns the current image unchanged. The number of available undo operations is limited by maxUndoRedoStackSize. When the operation limit is exceeded, the oldest operations cannot be undone.

Return

Image with last operation reverted, or current image if no operations to undo.