Scratch & Spot Remover
Brush away thin scratches, dust specks and age stains from old photographs with smart local smoothing — free, private, and right in your browser.
用智能局部平滑,抹去老照片上的细划痕、灰尘点与年代污渍——免费、私密,就在浏览器中完成。
Private by design — your photo is processed locally and never uploaded.Drop a photo here, or click to browse
Supported formats: JPG, PNG, WebP, GIF, BMP
Drag to compare
Tip: upload the largest scan you have — bigger input gives better results.
How It Works
Most old prints carry small enemies: a hair dragged across the scanner glass, dust that baked onto the emulsion, a thin crack in the negative, foxing stains in the paper. A global blur would erase these marks — but also every eyelash and pore. The Scratch & Spot Remover instead asks one question of every pixel: "are you suspicious compared to your local neighborhood?" If yes, it blends you toward the neighborhood median; if no, it leaves you completely alone. Everything runs locally in your browser, so the photo never leaves your device.
The two controls:
Repair radius
The size of the neighborhood inspected around each pixel. Radius 1 handles hairline scratches and dust dots; radius 2 covers wider specks and light stains, at the cost of slightly softer fine detail.
Sensitivity (threshold)
How different a pixel must look from its surroundings before it is treated as damage. Higher sensitivity removes more scratches, but also starts softening real texture; lower sensitivity is conservative and keeps faces intact.
Why median, not blur
A median filter takes the middle value of the neighborhood instead of the average. A single bright scratch line is the minority in every window it crosses, so it is voted out — while real edges, where half the pixels are dark and half light, survive the vote.
Selective blending
Only pixels that strongly disagree with the median are pulled toward it. Skin, walls and sky that look normal are never touched, which is why the result stays natural instead of going plastic.
An honest note: this tool is tuned for thin scratches, dust and small spots. It cannot fill a large torn-out area, inpaint around a big fold, or remove a heavy stain that covers a whole face — those need cropping or careful manual work. If a mark is wider than a few pixels, raise the repair radius and sensitivity gradually and check the before/after preview.
大多数老照片都有一些小麻烦:扫进玻璃的一根头发、烘焙进乳剂的灰尘、底片上一道细裂纹、相纸上的褐锈斑。整体模糊能去掉这些痕迹——但也会抹掉每一根睫毛和毛孔。Scratch & Spot Remover 转而对每个像素只问一个问题:「你和周围邻居相比,是不是很可疑?」可疑,就把你拉向邻域中值;不可疑,就完全不动你。全程在浏览器本地运行,照片从不离开设备。
两个控制项:
修复半径
每个像素周围考察的邻域大小。半径 1 处理发丝细划痕与灰尘点;半径 2 覆盖更大的斑点与浅污渍,代价是细腻细节略软。
敏感度(阈值)
一个像素要和周围差多少才算「损伤」。敏感度越高,去掉的划痕越多,但也开始软化真实纹理;低敏感度更保守,能保住人脸。
为什么用中值而不是模糊
中值滤波取邻域中间值而非平均值。一条亮划痕线在它穿过的每个窗口里都是少数派,会被「投票淘汰」;而真实边缘(一半暗一半亮)则能通过投票存活。
选择性混合
只有与中值差异很大的像素才被拉向中值。正常的皮肤、墙面与天空从不被触碰,所以结果保持自然,不会变成塑料感。
诚实说明:本工具针对细划痕、灰尘与小斑点。它无法填补大块撕裂缺失区域,无法修补深折痕周围,也无法去除覆盖整张脸的重度污渍——这些需要裁剪或手工精修。如果痕迹比几个像素宽,请逐步提高修复半径与敏感度,并观察前后对比预览。
How to Use
- Upload the damaged scanDrop in the photo with visible scratches or dust. A clean flatbed scan at 300+ DPI gives the algorithm clear signal to work with.
- Click "Auto Smooth"The default radius 1 and sensitivity 50 remove most hairline scratches and dust specks while keeping faces natural.
- Raise sensitivity for bad scansIf visible scratches survive, nudge "Sensitivity" up in steps of 10 until they fade — stop before skin texture starts to soften.
- Widen the radius for big spotsFor larger dust blobs or light stains, switch "Repair radius" to 2; keep an eye on eyelashes and fine lines.
- Download the cleaned photoExport PNG for your archive, JPG for sharing, WebP for the smallest size.
- 上传有损伤的扫描件拖入带划痕或灰尘的照片。干净的 300 DPI 以上平板扫描能给算法清晰的信号。
- 点击「自动平滑」默认半径 1、敏感度 50,可去除大多数发丝划痕与灰尘点,同时保持人脸自然。
- 糟糕扫描就提高敏感度如果还有可见划痕,以 10 为步长提高「敏感度」直到它们消失——在皮肤纹理开始发软之前停下。
- 大斑点就加宽半径对付较大的灰点或浅污渍,把「修复半径」切到 2;留意睫毛与细线是否变柔。
- 下载清洗结果存档导出 PNG,分享用 JPG,追求最小体积用 WebP。
Who this is for — and what it will not do
Use it for discrete marks — dust specks, hot pixels, emulsion flakes, short creases and the dotted damage left by a dirty scanner glass. It is not a replacement for retouching a torn corner, and it is not meant for long diagonal scratches that cross a face.
- Flatbed dust. White and black specks spread evenly across a scan, worst in skies and dark clothing.
- Short emulsion cracks. The little hairline breaks that appear on prints stored in dry heat.
- Pre-print cleanup. Removing a handful of distracting marks before an enlargement, without touching real texture.
Mistakes that ruin the result, and the fix for each
- Sensitivity at maximum on a textured photo. At the top end the detector starts treating knitwear, freckles and film grain as marks. Work upward from 50 and stop as soon as the specks disappear.
- Chasing a long scratch with the spot brush. It will leave a smeared stripe. Long damage needs a proper clone/heal pass in a desktop editor.
- Forgetting the physical cause. If the same specks appear on every frame of a scan batch, clean the scanner glass first — removing them digitally is the expensive way.
这个工具适合谁——以及它做不到什么
用于离散瑕疵:灰尘点、坏点、乳剂脱落的小碎片、短折痕,以及扫描仪玻璃不干净留下的点状污损。它不能代替修复被撕裂的边角,也不适合处理横穿人脸的细长划痕。
- 平板扫描的灰尘。白点黑点均匀散布,天空和深色衣服上最明显。
- 短的乳剂裂纹。存放在干燥高温环境中的照片上出现的细小断裂。
- 放大前的清理。在放印前去掉几处扎眼的瑕疵,同时不动真实纹理。
毁掉效果的常见错误,以及各自的解法
- 在有纹理的照片上把敏感度拉满。拉到最高时,检测会把针织纹理、雀斑和胶片颗粒当成瑕疵。从 50 往上加,点一消失就停。
- 用点状画笔去追一条长划痕。结果会是一条抹糊的条纹。长划痕需要桌面修图软件里规范的仿制/修复处理。
- 忽略物理成因。如果同一批扫描的每一格都有同样的点,先擦干净扫描仪玻璃——在数字端一个个清才是费力的做法。
Field Notes: Settings That Actually Work
Concrete starting values taken from the tool's own parameters, plus what to change when the first result is not right.
The realistic job for this tool is a single flatbed pass over a shoebox of prints: ninety percent of the frames are fine, and ten carry a hairline scratch, a scatter of dust, or a fingerprint smudge. Those marks are a few pixels wide, which is exactly the scale where a median test can tell damage from detail. Only two sliders exist, and the second one is not "more cleaning" — it is a threshold that decides how big a difference between a pixel and its neighbours counts as damage. That is why setting it to 100 does not simply erase more: it starts treating real texture as damage.
| What you see | Start here | Why it works | If it is still wrong |
|---|---|---|---|
| A single hairline scratch across a smooth sky or wall | Repair radius 1 · Sensitivity 65 | Radius 1 takes the median of 9 neighbours. At sensitivity 65 a pixel is fully replaced once it differs from that median by about 77 grey levels, and blended proportionally below that — so the soft gradient of the sky is untouched. | Scratch survives: 80 (full replacement at about 63 levels). Sky turns blotchy: 55 and widen the radius instead. |
| Dust specks and salt-and-pepper dots on a light shirt | Repair radius 1 · Sensitivity 45 | At 45 the full-replacement point moves to roughly 111 levels, so only genuinely hard specks are rewritten, and the fabric weave keeps its texture. Light dust gets partial blending rather than a hard edit. | Specks still visible: 60, then check the collar — the place where fabric meets skin is where over-smoothing shows first. |
| A soft 3–4 px stain or a dust blob that reads as a smudge | Repair radius 2 · Sensitivity 55 | Radius 2 samples a 5×5 window, so a mark has to be a minority of 25 pixels before the median can vote it out. Larger windows also smooth the repair itself, which is what keeps the patch from showing as a hard coin. | If the blob is still there, the median is contaminated by the blob itself — stop, that mark needs cropping or manual work, not a bigger radius. |
| A scratch crosses a cheek or an eye area | Repair radius 1 · Sensitivity 35 | At 35 nothing is fully replaced below about 143 levels, so only the strongest part of the scratch is pulled toward its neighbourhood; facial gradients and lashes survive at the cost of a faint remaining trace. | If the mark is still obvious on the cheek, go to 50 and compare at 100% zoom; if lashes start to blur, back off and accept the trace. |
The median test has one blind spot worth respecting: it judges a pixel against its surroundings, so it only works when the damage is the minority. A thin crease that runs the full height of the frame, a torn corner, or a stain wider than the window cannot be voted out — it becomes part of what "normal" looks like. For long folds the AI Photo Restorer has a dedicated multi-row fold pass that tracks a wavy ridge across the frame. For grain rather than marks, Photo Denoiser blends the whole frame instead of only the suspicious pixels. For a missing corner, Photo Cropper is the honest answer.
What it cannot do: the radius tops out at 2, a 5×5 neighbourhood, so anything wider than about four pixels is out of scope — and raising sensitivity instead will soften eyelashes, hair strands and engraved text before the stain goes. The channels are processed independently, so a coloured mark on a strongly coloured edge can leave a faint colour fringe even when the brightness looks repaired. There is no inpainting, no texture synthesis and no way to redraw a face. Preview work happens at 2000 px on the long side, which is why a mark you cannot see in the preview but can see in the download is worth fixing on the full-size export.
Sources & further reading
这个工具最真实的使用场景,是把一鞋盒的照片一次性平板扫描完:九成的画面本来没问题,剩下一成带着一道发丝划痕、一片灰尘,或者一个指印。这些痕迹只有几个像素宽,正好是中值判断还能区分「损伤」与「细节」的尺度。这里只有两个滑杆,而且第二个不是「清洁力度」——它是一道门槛,决定像素与邻域差多少才算损伤。所以把它推到 100 并不会单纯地「多擦掉一点」,而是开始把真实的纹理当成损伤。
| 看到什么 | 从这里开始 | 为什么有效 | 还是不对怎么办 |
|---|---|---|---|
| 天空或墙面上有一道发丝划痕 | 修复半径 1 · 敏感度 65 | 半径 1 取 9 个邻居的中值。敏感度 65 时,像素与中值相差约 77 个灰阶就被完全替换,低于这个值则按比例混合——天空那种柔和渐变因此毫发无伤。 | 划痕还在:提到 80(完全替换的阈值约 63 个灰阶)。天空出现斑块:退回 55,改用更大的半径。 |
| 浅色衬衫上有灰尘点和椒盐噪点 | 修复半径 1 · 敏感度 45 | 敏感度 45 时完全替换的门槛约 111 个灰阶,只有真正的硬点会被改写,织物的纹理保得住。较轻的灰尘只是被部分混合,而不会留下生硬的修补块。 | 灰点仍可见:提到 60,然后看领口——布料与皮肤交界处最容易先暴露出过度平滑。 |
| 3–4 像素宽的一块软污渍、或一团灰斑 | 修复半径 2 · 敏感度 55 | 半径 2 采样 5×5 的窗口,痕迹必须在 25 个样本里占少数,才可能被中值「投票淘汰」。窗口更大,修补本身也更平滑,补丁才不会像一个硬边的硬币。 | 灰斑还在,说明连中值都被灰斑污染了——停下,这种痕迹要用裁剪或手工处理,而不是继续加半径。 |
| 划痕正好划过脸颊或眼睛周围 | 修复半径 1 · 敏感度 35 | 敏感度 35 时,约 143 个灰阶以下都不会被完全替换,只有划痕最强的那一段被拉向邻域;脸部渐变与睫毛得以保留,代价是痕迹会剩一点点。 | 脸颊上仍然明显:提到 50,并在 100% 缩放下对比;一旦睫毛开始糊,就退回去,接受那一点残痕。 |
中值判断有一个必须尊重的盲区:它是拿像素和周围比较,所以只有「损伤是少数派」时才成立。贯穿整幅画面的长折痕、撕掉的角、或者比窗口还宽的污渍都无法被投票淘汰——它们会变成「正常」的一部分。长折痕请交给 AI 照片修复,它有一条专门的多行折痕检测,能沿着波浪形的脊线追踪整幅画面。如果问题是颗粒而不是痕迹,照片降噪 是对整幅画面做混合,而不是只动可疑像素。缺了一角,诚实的答案是 照片裁剪。
它做不到的部分:半径最大只有 2,也就是 5×5 的邻域,宽于约四个像素的痕迹直接超出能力范围——此时改去拉高敏感度,只会先把睫毛、发丝和刻字磨软,污渍却还在。各通道独立处理,所以强色边缘上的彩色痕迹即使亮度看着修好了,也可能留下一点色边。这里没有内容补全、没有纹理合成,也不可能重画一张脸。预览最长边 2000 像素,所以遇到「预览里看不见、下载后却看得见」的痕迹,值得在完整尺寸的导出上再处理一次。
参考来源与延伸阅读
FAQ
Is my photo uploaded to a server?
Can it remove big tears or missing areas?
Some thin scratches are still visible. What now?
Why does the photo look soft after processing?
Is it free?
我的照片会被上传到服务器吗?
它能去除大撕裂或缺失区域吗?
一些细划痕还看得见,怎么办?
处理后照片为什么发柔?
是免费的吗?
Related Tools
AI Photo Restorer
Full one-click restore: it runs its own light scratch smoothing on top of color and noise fixes.
一键完整修复:在色彩与降噪之上再做轻度划痕平滑。
Photo Denoiser
Dust specks are a form of noise — the denoiser handles fine grain while this tool targets long scratches.
灰尘点也是一种噪点——降噪器管细腻颗粒,本工具专攻长条划痕。
Faded Photo Fixer
Remove marks first, then bring back the color and contrast — the natural restore order.
先去痕迹,再恢复色彩与对比度——自然的修复顺序。
Photo Sharpener
Once scratches are gone, sharpen the cleaned image for that finished restored look.
划痕去除后,锐化清洗好的图像,获得完成修复的观感。
Red Eye Remover
Spot-fix flash red eyes after the broader scratch cleanup is done.
大范围划痕清理完成后,再定点修复闪光灯红眼。
Black & White Converter
Clean scratches first — monochrome makes every remaining spot twice as visible.
先清理划痕——黑白会让任何残留斑点显眼两倍。
Related Guides
How to Remove Scratches and Spots from Old Photographs
Which marks to fix automatically and which need careful manual retouching.
哪些痕迹适合自动处理,哪些需要手工精修。
Scanning Old Photos: Best Settings & Prep
Wiping the scanner glass prevents half the scratches you would otherwise remove.
擦净扫描玻璃,能避免一半本来要去除的划痕。
Film Scan Restoration: Dust, Grain & Color Shifts
Film scans collect dust fast — how to minimize and then clean it.
胶片扫描极易沾灰——如何从源头减少并在后期清理。
How to Restore Old Photos of Your Grandparents
Where scratch removal fits in the complete family-photo workflow.
划痕去除在完整家庭照片修复流程中的位置。