Object removal tutorial - brush, box select, feathering and repeat passes
This walkthrough follows the real order of work: what the tool is for, what each control does, a five step pass, and a self-check before you ship the export.
When to use
A stranger in a holiday photo, clutter on a desk, half a watermark in a screenshot. Professional healing brushes are overkill for that. This tool does one thing: paint the object red, and it fills the area from similar nearby texture.
The fill uses boundary diffusion plus patch matching: lay down a colour base from the edge, paste back the closest matching patch, then smooth the seam. Small clutter, thin wires and corner watermarks work best; an object covering half the frame will look smudged, which is an algorithmic limit rather than a mistake.
An 800x600 image is ready to paint about 71 ms after import. Strokes are recorded as sampled points and composited once on release, instead of repainting the whole picture on every mousemove.
The undo stack keeps at most ten snapshots, roughly ten copies of the pixels at canvas size. Past that the oldest one is dropped, which is the trade-off between memory and how far you can step back.
Steps
- Import a photo and switch to 100 percent to find the target.
- Set the brush size and paint over the object, extending two to four pixels past its edge.
- Pick a fill strategy and iteration count, then run the fill.
- Hold compare to check for leftovers, then touch up or undo.
- Export PNG or copy the result.
Screenshots
These three shots come from the final build of this plugin.



Features in detail
Paint to mask with a 4 to 80 px brush; erase or undo when you overshoot.
Two fill strategies: fast diffusion for small areas and flat backgrounds, patch matching for textured walls, floors and fabric.
Hold to compare with the original and release to return to the result.
Up to ten undo steps and a Start over that restores the import.
Zoom between 50 and 100 percent for precise tracing.
Local only:no upload, export at source resolution.
What you get
Inputs
- JPG, PNG or WebP up to 20 MB and 8000 px per side.
- Brush 4 to 80 px; fast diffusion or patch matching; three to twelve iterations.
- The mask is stored in source pixels, so display zoom does not move it.
Outputs
- A PNG at the original resolution, or a clipboard copy.
- The history lists only this session and clears on refresh.
Parameters
The workspace exposes 4 controls, from 把照片拖进来,或点击选择
J to 迭代次数, and every one of them only affects the local rendering: nothing is sent back to a server.
Ranges and defaults: 把照片拖进来,或点击选择
J (4–80(默认 24)), 补全策略 (块匹配 · 有纹理背景 / 快速扩散 · 纯色背景), 迭代次数 (3–12(默认 6)), 迭代次数 (0–6(默认 2)). Values outside the slider range are rejected rather than silently clamped.
| Control | Type | Range or options |
|---|---|---|
| 把照片拖进来,或点击选择 |
J | range | 4–80(默认 24) |
| 补全策略 | select | 块匹配 · 有纹理背景 / 快速扩散 · 纯色背景 |
| 迭代次数 | range | 3–12(默认 6) |
| 迭代次数 | range | 0–6(默认 2) |
Typical cases
- Removing a passer-by or bin that slipped into a travel photo.
- Cleaning a stray cable, price tag or stain from a product shot.
- Flattening half a watermark left in a screenshot corner.
In each of these cases the pass is the same: load the file, make one change, check the preview, export and reopen. Skipping the reopen step is why people later discover a transparent halo or a truncated table that looked fine on screen.
A worked pass
Step 1: Import a photo and switch to 100 percent to find the target. Read the hint line before touching anything: it tells you which prerequisite is missing.
Step 2: Set the brush size and paint over the object, extending two to four pixels past its edge. Do not start with the most extreme setting; one small change is enough to see whether the result moves in the right direction.
Step 3: Pick a fill strategy and iteration count, then run the fill. Check the preview at 100% rather than the fitted view, because artefacts often hide in the downsampled version.
Step 4: Hold compare to check for leftovers, then touch up or undo. Export once, open the file in a local viewer, and only then decide the settings are final.
Step 5: Export PNG or copy the result. Keep the source file untouched so you can repeat the pass with a different setting without re-importing.
Walking through the controls
The 把照片拖进来,或点击选择
J slider is bounded by 4–80(默认 24). Keep it near the default for a first pass, then move one step at a time: each step is visible in the preview, and moving it in large jumps makes it impossible to tell which setting produced the artefact you are trying to remove. Values outside the range are rejected instead of being silently clamped, so the number in the readout always matches what the export will use.
The 补全策略 dropdown offers 块匹配 · 有纹理背景 / 快速扩散 · 纯色背景. Switching it re-renders the preview immediately, so compare two neighbouring options rather than jumping across the whole list; the exported file follows the option that is selected at the moment you press export, not the one you looked at earlier.
The 迭代次数 slider is bounded by 3–12(默认 6). Keep it near the default for a first pass, then move one step at a time: each step is visible in the preview, and moving it in large jumps makes it impossible to tell which setting produced the artefact you are trying to remove. Values outside the range are rejected instead of being silently clamped, so the number in the readout always matches what the export will use.
The 迭代次数 slider is bounded by 0–6(默认 2). Keep it near the default for a first pass, then move one step at a time: each step is visible in the preview, and moving it in large jumps makes it impossible to tell which setting produced the artefact you are trying to remove. Values outside the range are rejected instead of being silently clamped, so the number in the readout always matches what the export will use.
Practical notes
Keep the browser window above 1200 pixels wide while working: below that the right column collapses under the left one and you lose the side-by-side view.
Use the reset control between experiments; carrying state from a previous pass is the most common reason a setting appears to have no effect.
If a control looks unresponsive, check the hint line first: most no-op states are caused by a missing file rather than a broken button.
Export after every meaningful change rather than at the very end, so you still have a known-good file if the next experiment goes wrong.
On a laptop with a scaled display the preview is drawn at device pixel ratio, so text that looks crisp on screen stays crisp in the exported image at the same size.
Compare your result against the limits section: if you are working outside the documented range, the tool may still run but the output quality is not guaranteed.
Long sessions are fine because nothing is uploaded, but reload before switching to a different kind of file so cached state cannot leak into the new pass.
The controls you will touch most often here are 把照片拖进来,或点击选择
J, 补全策略, 迭代次数, 迭代次数.
Self-check list
Run the workflow once with a real file and confirm the result pane shows content, not the empty state.
Push every slider to its minimum and maximum and confirm the readout follows without an error.
Switch each dropdown and confirm the preview and the export change together.
Export once and reopen the file with a local viewer to confirm it is not truncated.
Reset the workspace and confirm all panels return to the empty state.
Reload the page and confirm no previous result is restored by accident.
FAQ
Q: Why is the filled area blurry?
A: No similar texture was nearby, so only colour diffused; paint a smaller area or switch to patch matching.
Q: Can it remove a large solid watermark?
A: Thin or translucent ones yes; a solid block covering much of the frame usually cannot be filled cleanly.
Q: It is slow, what can I do?
A: Work on a 2000 px copy, lower the iterations, then re-run at full size.
Q: Can I undo many mistaken strokes?
A: Only the last ten steps. Beyond that the oldest is discarded, so export an intermediate result before a large rework.
Q: Does the file leave my device?
A: No. Everything runs inside the browser; requireNetwork is false and no upload happens.
Q: Which browsers does it run in?
A: Current Chrome, Edge, Firefox and Safari builds; no extension or plugin is needed.
Q: Why does the exported file differ in size from the source?
A: The export re-encodes the result, so size follows the chosen format and quality settings.
Limits
- No generative fill; complex texture produces blur and repeated patterns.
- No automatic object detection; you paint the mask.
- Images are never uploaded or written to disk.
Version and compliance
This build is v1.0.0 on ToolCMS plugin spec 3.19, schemaVersion 2.1 and coreVersion 3.7.4. All processing happens inside the browser, requireNetwork is false and no file leaves the device.