Retouching AI Skin in Photoshop by Script, Without the Plastic Look
Image models leave a fine crackle on skin that a magazine retoucher would never let through. We drive a running Photoshop from scripts and an MCP server, and remove it region by region with a masked Surface Blur. Freckles, moles and smile lines stay. Here is the routine and where it fails.

Key takeaways
- AI portraits often carry a crackle or mosaic in the skin. It overlaps real pores and isn't periodic, so frequency filters can't separate it.
- Our routine: feather the selection 4 px, Surface Blur at radius 7 and threshold 14, reveal it only inside the selection with a layer mask, set the layer to 65% opacity. One region per pass.
- Surface Blur preserves edges, so irises, lashes, brows, freckles and moles survive. A small mole is identity; never blur it away.
- Only use it on frames that have the defect. On clean skin, the same filter erases real pores and freckles.
- Every pass is a separate layer and the original file is never overwritten, so any step can be dialled down or removed later.
The defect
Look closely at an AI-generated portrait and the skin often has a fine, crackled texture, like a mosaic laid over the face. At phone size it reads as "too much texture". In a printed editorial or a 1080x1350 carousel slide, it reads as AI.
It is hard to remove for three reasons. The crackle sits in the same frequency band as real pores and fine lines, so a frequency filter can't tell them apart. It isn't periodic, so a notch filter has nothing to lock onto. And sending the image back through an edit model doesn't help: the reference-edit models we tried copied the mosaic into their output in the same pattern.
So we fix it the way a retoucher would, in Photoshop, but driven by script.
Driving Photoshop from code
We control a running Photoshop on our workstation in two ways: an MCP server that exposes Photoshop's tools to the agent, and a direct script bridge that sends ExtendScript into the app. Either way, the agent works in a real Photoshop document with real layers and masks, and every change can be opened and inspected by hand.
We first compared Photoshop's Neural Filters skin smoothing with a manual lasso plus Surface Blur on the same portrait. We kept Surface Blur: it is predictable, its strength is two numbers, and it can be confined exactly to the region we choose.

The routine
Each pass works on one region: forehead, cheeks and chin, under the eyes, or the area around the mouth.
- Select the region and feather the selection by 4 px.








