Edit command

setClipCutout

Sets or clears a picture's cutout: the mask that removes its background.

Fields

  • clipIdstringrequired

    The clip. An unknown id is a no-op.

  • cutoutCutoutoptional

    The cutout, or None to take it off.

Cutout fields: mode (auto or custom), subject (auto, person, object; default auto), feather (edge softness as a fraction of the picture's width), strokes (corrections, see next).

Masks are found at export time; export.run reports it as cutout.progress.