darktable.new_format

function(
type : string
) : types.dt_imageio_module_format_t

Creates a new format object to export images

  • type - string - The type of format object to create, one of :

    • copy
    • exr
    • j2k
    • jpeg
    • pdf
    • pfm
    • png
    • ppm
    • tiff
    • webp
  • return - types.dt_imageio_module_format_t - The newly created object. Exact type depends on the type passed