# Original-derived clip backgrounds

> Original-derived clip backgrounds in the Edith ed command line reference. Back to the CLI reference

- Canonical URL: https://getedith.pro/docs/cli/studio/edit-backgrounds
- Updated: 2026-12-02

[Back to the CLI reference](https://getedith.pro/docs/cli)

`ed studio edit apply` accepts an optional `background` object inside each clip's
`visualEffects.effects`. The background always uses that clip's original media,
with image orientation and embedded color profile applied. No replacement asset
or baked image is created. Preview, frame extraction, contact sheets and export
use the same native render pipeline.

Border review continues to assess foreground source coverage. It identifies the
intentional original-derived layer with `original_background_fit`,
`original_background_fill`, or `original_background_fullWidth`, plus
`original_background_blur` when the radius is positive. Foreground-uncovered
canvas samples can therefore be intentional background regions.

For a 2160 × 3840 canvas, this places a landscape photo at full canvas width,
centered vertically, over an independently filled original with radius 65:

```json
{
  "version": 1,
  "operations": [
    {
      "visualEffects": {
        "clipID": "photo",
        "effects": {
          "framing": "fullWidth",
          "background": { "blurRadius": 65 }
        }
      }
    }
  ]
}
```

`photo` can be an actual clip ID or an alias from an earlier `addStill` operation
in the same plan. Apply the operation to each of the 18 clip IDs for an 18-photo
sequence; settings are per clip. Inspect `ed studio edit schema` for machine-readable
fields and `ed studio edit show` for persisted settings. Use `ed studio edit apply --dry-run`
to validate the complete plan without changing the project.

## Foreground geometry

- `fit` retains the entire selected source rectangle, with letterboxing if needed.
- `fill` covers the canvas, clipping overflow according to the focal point.
- `fullWidth` scales the selected source rectangle to canvas width, preserving
  aspect ratio. With zero project padding and neutral keyframes/zoom, it is
  exactly full width and centered by the default focal point `(0.5, 0.5)`.
  A rectangle taller than the canvas extends beyond its top and bottom. Use
  `fit` when the entire tall image must remain visible.
- The existing `crop` operation selects the foreground rectangle in normalized,
  oriented source coordinates. `resetCrop` restores the whole foreground source.
  Neither operation affects the background.
- Project padding reduces foreground scale. Source-time keyframes and zoom
  regions apply after base framing, so a scale above 1 can clip a previously
  contained foreground. Background placement is unaffected by this motion.

## Background settings

| Field | Default | Meaning |
| --- | --- | --- |
| `framing` | `fill` | `fit`, `fill`, or `fullWidth`, independent of foreground |
| `focalX`, `focalY` | `0.5` | Fractions from left/top, each from 0 through 1 |
| `blurRadius` | `65` | Encoded-sRGB Gaussian radius in project-canvas pixels, 0 through 1000 |
| `sourceCrop` | entire original | `{ "x", "y", "width", "height" }`, normalized oriented-original coordinates |

Crop dimensions are each 0.05 through 1. Origins are each 0 through 0.95;
`x + width` and `y + height` must not exceed 1. All values must be finite.
Background crop is applied directly to the original, before its independent
framing. The placed background is cropped to its visible canvas rectangle before
its edges are clamped and blurred. Pixels outside the viewport cannot bleed into
the blur. Both layers receive the clip's exposure and color controls.
Fit and full-width backgrounds may intentionally leave the project backdrop
visible outside their placed rectangle.

Positive-radius background blur operates on encoded sRGB channel values, matching
the processing domain of Pillow's `ImageOps.fit(...).filter(ImageFilter.GaussianBlur(...))`.
Embedded profiles, including Display P3, are honored before background colors are
clipped to the sRGB gamut and encoded for blur. The result returns to the pipeline's
linear working space for composition and conversion to the project output profile.
This avoids the brighter mixed edges produced by averaging linear-light values.
A zero radius bypasses this conversion and preserves the original gamut.
Foreground colors and the selected grading mode are independent of this blur rule.

Radius is expressed at the project's native canvas size. A 540 × 960 preview
of a 2160 × 3840 canvas uses radius 16.25 for a stored radius of 65. Export and
full-resolution frame extraction decode the original at full resolution.

Preview and export blur match each other within a few RGB levels.

## Defaults and replacement

`visualEffects` replaces the complete visual settings object. Omitted fields
reset to fit framing, centered focal point, exposure/brightness 0,
contrast/saturation 1, no keyframes, and no clip background. An empty background
object enables its defaults. Omit `background` to disable it. Null values and
unknown plan fields are rejected. A keyframe requires only `time`; omitted
transform fields use identity values and interpolation defaults to `linear`.

The inspector exposes the same background fields and full-width foreground
framing. Color controls default to Core Image semantics. Select the explicit
[`ffmpeg709` grading mode](https://getedith.pro/docs/cli/studio/edit-grading) for encoded sRGB/BT.709 EQ semantics;
equal numeric values between different modes do not establish pixel parity.

## Grading compared with FFmpeg

With neutral controls, a clip graded in the `native` mode matches FFmpeg's `eq`
filter within one RGB level. With stronger controls the two differ visibly,
because `native` grades in linear light and `eq` adjusts encoded YUV values with
a different contrast pivot. The `native` mode keeps Edith's own look. Use the
`ffmpeg709` mode when you need to match FFmpeg's `eq`.

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
