darktable.register_storage with non-disk storage

This may be a daft question, but is it possible to write a darktable script to create a custom export module that uses a storage type other than the dt_imageio_module_storage_data_disk type?

The darktable lua documentation includes email, gallery, latex and piwigo as other storage types and I’m interested in the email and piwigo options but would like to create my own export module to customise them a little.

Thanks for any help/advice.

You can create a custom exporter that does whatever you want. The image will get exported and saved to disk, but you can manipulate if after it’s saved and do something else with it like:

  • send it to GIMP for further processing (contrib/gimp.lua)
  • send it to facial recognition software (contrib/face_recognition.lua)
  • combine images into an HDR (official/enblend.lua, contrib/HDRMerge.lua,enfuseAdvanced.lua)
  • create a video (contrib/video_ffmpeg.lua)
  • etc.

In practice the dt_imageio_module_storage stays behind the scenes and you don’t have to manipulate it directly.

2 Likes