Skip to content
IndexRequest a UIAboutContact

Aperture & Depth of Field

Drag the aperture from f/1.4 to f/16 and choose which object is in focus.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI IMAGE OR VIDEO TOOL
Portrait of [subject] holding a small lantern, shot at f/1.4 on an 85mm lens, razor-thin focus plane on the eyes, foreground leaves softly blurred, background lights turned into large creamy bokeh circles, warm evening light, shallow depth of field, photographic realism. Variation: f/8 with the whole scene sharp from the lantern to the distant street, deep focus. Focus variants: focus on the near leaf with the subject soft, focus on the far lights with the subject soft. Negative: flat uniform blur, fake tilt-shift look, double edges, blurry subject when sharp focus is requested.

About this pattern

Definition

Depth of field is how much of the scene looks sharp. A wide aperture (small f-number such as f/1.4) gives a thin sharp zone and creamy blur; a narrow aperture (f/11 to f/16) keeps almost everything sharp.

When to use it

  • Shallow focus isolates a subject for portraits and product shots; deep focus suits landscapes and architecture.
  • Pick the focus plane (near, middle, far) to steer attention; the other planes blur in proportion to their distance from it.
  • State both the f-number and what is in focus.

What the controls do

  • Aperture slider from f/1.4 to f/16; three buttons set the focus plane to Near, Middle or Far.

Motion & timing

  • Blur updates live with the slider and eases 200ms when the focus plane changes.
  • Reduced motion: it changes instantly.

Tips & variations

  • Blur amounts scale with image size; check the result at the final display size.
  • In prompts, pair the aperture with the focal length for the most predictable look.

Code of this live preview

HTML
<div class="bx"><div class="st" id="st"><div class="o far" data-z="2"><i></i><i></i><i></i></div><div class="o mid" data-z="1"></div><div class="o near" data-z="0"></div></div>
<label class="ctl">Aperture <b id="fv">f/2.8</b><input id="f" type="range" min="0" max="100" value="25"></label>
<div class="pre" id="pre" role="group" aria-label="Focus plane"><button data-z="0">Near</button><button data-z="1" aria-pressed="true">Middle</button><button data-z="2">Far</button></div></div>

Related patterns

Focal Length Compare

↗
Focal Length CompareLens & Shot Size

Shot Size Ladder

↗
Shot Size LadderLens & Shot Size

Keyword Before & After

↗
Keyword Before & AfterBefore & After