This section documents events that can be used to trigger Lua callbacks.
This event is called each time an image is exported, once for each image after the image has been processed to an image format but before the storage has moved the image to its final destination. The call is blocking.
function( event : string, image : types.dt_lua_image_t, filename : string, format : types.dt_imageio_module_format_t, storage : types.dt_imageio_module_storage_t )
The name of the event that triggered the callback.
The image object that has been exported.
The name of the file that is the result of the image being processed.
The format used to export the image.
The storage used to export the image (can be nil).