Miniature effect · angled focus band, graduated blur

Tilt-Shift Effect

Keep one band of a picture sharp and let the rest fall away into blur, then lift saturation and contrast so a street or a harbour reads like a model. The band can be tilted, and the blur grows smoothly with distance from it.

Picture

Best with a high viewpoint looking down

Drop a photo here, paste, or click to choose

PNG, JPG, WEBP, GIF or BMP, up to 25 MB. Larger pictures are scaled to 2800 px on the long side.

Focus band

0 puts the band at the top (or the left edge for a vertical band), 100 at the bottom.

0 is horizontal, 90 or -90 is vertical.

Short falloff gives a hard miniature look; long falloff looks like a fast lens.

Blur radius on a 1000 px picture; scaled up for larger ones.

Colour

Save

Preview

Your picture appears here.

Tilt-Shift Effect

Operator: Abdulla Al Fahad. How tools are built and checked

A 2000 x 1333 harbour photo with the default settings keeps a band 267 px tall in perfect focus, ramps the blur up over the next 400 px on each side, and reaches a Gaussian blur of 20 px 533 px from the centre line, well before the top and bottom edges at 667 px. The eye reads that pattern as shallow depth of field at close range, so the harbour looks like a model. This page does the same with an angle, so the band can follow a road or a coastline instead of staying level.

Key features

  • A focus band with position, angle from -90 to 90 degrees, width and falloff distance
  • Blur up to a Gaussian radius of 40 px per 1000 px of picture, graduated through seven blur levels
  • A saturation boost of up to 100 percent and a contrast boost of up to 60 percent
  • Band guides drawn on the preview only, never in the saved file
  • PNG or JPG at the picture's own size, up to 2800 px on the long side

The focus band, the blur gradient and the colour lift

The page opens PNG, JPG, WEBP, GIF (first frame) and BMP files up to 25 MB, and a picture larger than 2800 px on the long side is scaled down as it opens. Position runs from 0 to 100 percent across the picture along the band's normal, so 50 is the middle whatever the angle. Width and falloff are percentages of the picture's extent across the band, and Maximum blur is a radius for a 1000 px picture that scales with the real size, so the preview and the saved file look alike. The preview is drawn at up to 800 px. JPG is saved at quality 92 on a white background, and a PNG keeps any transparency.

How it works

For each pixel the page works out its signed distance from the focus line, subtracts half the band width, divides by the falloff distance and passes the result through a smoothstep, which gives 0 inside the band and 1 beyond the falloff. Seven copies of the picture are pre-blurred at equal steps of Gaussian radius from 0 to the maximum, each approximated by three box blurs. A pixel's blur amount picks the two nearest copies and mixes them, which avoids the banding a single hard blur radius would show. Saturation then pushes each channel away from the pixel's brightness, and contrast pushes it away from mid-grey.

Common use cases

  • A 3000 x 2000 rooftop photo of a plaza, opened at 2800 x 1867: a horizontal band at 55 percent position and 15 percent width keeps the middle of the crowd sharp, and Maximum blur 12 becomes a 33.6 px radius at full size.
  • A winding coastal road photographed from a cliff: set the angle to about 20 degrees so the band runs along the road, and use a short falloff of 15 percent for a hard model-train look.

How to use this tool

  1. Open a photo, ideally one taken from above and looking down.
  2. Set the band's position, angle, width and falloff until the guides sit on the part to keep sharp, then raise the blur and the colour.
  3. Choose JPG or PNG and download; the full-size blur is worked out when you press the button.

Example

1000 x 667 photo, default settings (band 20%, falloff 30%, maximum blur 10)

sharp band    133 px tall (66.7 px either side of the centre line)
blur ramp     200 px on each side
row 167 px above the centre line

What happens to that row

halfway up the ramp: smoothstep(0.5) = 0.5
blur radius there: 5 px (level 3 of 6)
full 10 px blur from 267 px out

Tips for best results

  • Short falloffs of 10 to 15 percent look like a macro lens; a falloff over 40 percent looks like an ordinary graduated blur and loses the toy effect.
  • Judge the colour sliders before the blur. Toy scenes are usually brighter and more saturated than real ones, so the defaults of +30 percent saturation and +10 percent contrast already carry much of the effect at a blur of 10.
  • If the horizon falls inside the blurred zone the effect breaks: the sky edge smears and the picture reads as an out-of-focus landscape, not a model. Crop the sky away, or tilt and move the band so the horizon sits inside the sharp part.

Common pitfalls

The blur is a Gaussian blended by distance, not a lens model, so bright highlights do not bloom into discs, and a subject that crosses the edge of the band is blurred along a straight line through it. Keep people and cars inside the band, because one that straddles the edge shows a sharp half and a soft half.

Common errors and how to fix them

My 6000 x 4000 photo saved at 2800 x 1867
Pictures over 2800 px on the long side are scaled down when they open, so the blur can be worked out in a few passes without exhausting memory. Crop the part you need before opening it if you want it at more pixels.

Best practices

  • Shoot from a high viewpoint looking down; the effect imitates a close view of a small scene, and a level street view contradicts it.
  • Keep the band across the main subject and let the falloff end before the picture's edge, so the corners are fully blurred rather than half blurred.

Frequently asked questions

How wide is the sharp band when I tilt it?

Width and falloff are shares of the picture's extent across the band, which grows as the band turns: 1333 px at 0 degrees for a 2000 x 1333 photo, 2000 px at 90, and 2357 px at 45. A 20 percent band is therefore 267 px level, 400 px vertical and 471 px at 45 degrees.