Home / Lua API Manual / darktable / darktable.new_storage
< darktable.new_format
darktable.new_widget >

# darktable.new_storage

    function(
    type : string
    ) : types.dt_imageio_module_storage_t

Creates a new storage object to export images.

- type - string - The type of storage object to create, one of:

  - disk
  - email
  - gallery
  - latex
  - piwigo
  - (Other, lua-defined, storage types may appear.)

- return - [types.dt_imageio_module_storage_t(../../types/dt_imageio_module_storage_t)] - The newly created object. Exact type depends on the type passed

< darktable.new_format
darktable.new_widget >