Enhancements

What each enhancement does

Six enhancements, each powered by a model picked in side-by-side tests on real photos. Use one, or chain up to four in one pass.

Denoise

Removes grain from high ISO and low-light photos and cleans up JPEG compression, while keeping fine texture. Start at 0.5. Raise it for very noisy photos, and lower it if skin or foliage starts to look smooth.

Denoise: before
Denoise: after PAINITE
BEFOREAFTER
Grain and color speckle are removed while the lettering, roof tiles and chain links stay sharp. The noise here was simulated (like ISO 6400). Photo: DimiTalen, CC0.

Model: SCUNet (real-world GAN). CLI: --op denoise.

Sharpen

Restores crisp edges and detail to a slightly soft photo, without the halos of a classic sharpening filter. Best for mild softness from a lens, light diffraction or resizing. For a clearly blurred photo, use Unblur.

Sharpen: before
Sharpen: after PAINITE
BEFOREAFTER
Restores crisp brick edges, mortar lines and window bars without halos. The softness here was simulated with a slight blur. Photo: Jebulon, CC0.

Model: Real-ESRGAN 2×, then scaled back to the original size. CLI: --op sharpen.

Unblur

Called Deblur in the Mac app.

Recovers photos ruined by blur. There are two kinds of blur, and each has its own model. PAINITE can't tell them apart reliably, so you choose:

Motion

Edges are smeared in one direction, sometimes with double edges. Caused by camera shake or a subject that moved.

Mac: Deblur, Motion. CLI: --op unblur_motion.

Focus

Everything is evenly soft in every direction, and points of light become discs. Caused by missed focus.

Mac: Deblur, Focus. CLI: --op unblur_focus.

Unblur: Motion: before
Unblur: Motion: after PAINITE
BEFOREAFTER
Removes a smear in one direction, from camera shake or a moving subject. The shake here was simulated (21 px). Photo: Jebulon, CC0.
Unblur: Focus: before
Unblur: Focus: after PAINITE
BEFOREAFTER
Recovers a photo that is evenly soft because the focus missed. The defocus here was simulated (7 px). Photo: Bernard Gagnon, CC0.

If the result barely changes, try the other kind. Unblur works best on moderate, even blur. Strong or rotating shake, or blur on only one moving subject, improves less. Unblur's strength defaults to 1.0.

Motion unblur is for non-commercial use only. Its model (Stripformer) is licensed for non-commercial use. Focus unblur's model (LaKDNet) is AGPL-3.0. See model licenses.

Face

Called Faces in the Mac app.

Finds faces and restores them: eyes, skin and hair become clear and natural, while the rest of the photo is left exactly as it was. Good for old prints, small faces in group photos and soft portraits. A photo with no faces comes back unchanged.

Face: before
Face: after PAINITE
BEFOREAFTER
Restores faces it detects (128 px or larger) and leaves the rest of the photo alone. Real 1927 print scan. Photo: Harris & Ewing, public domain.

Model: GPEN-BFR-1024 with RetinaFace detection. CLI: --op face.

Upscale 2×

Doubles the width and height (four times the pixels) and adds real detail, so you can crop more or print larger. It also cleans up JPEG artifacts. Output is limited to 192 megapixels.

Upscale 2×: before
Upscale 2×: after PAINITE
BEFOREAFTER
Doubles the width and height with real detail. Before is a standard (bicubic) enlargement of the same crop. Photo: Wilfredor, CC0.

Model: 2× NomosUni ESRGAN. CLI: --op upscale2x.

Combining steps

Steps run top to bottom in one pass. A good order is Denoise → Unblur → Sharpen → Face → Upscale: remove noise first so the other steps don't amplify it, and upscale last. The Mac app's presets follow this order.

Several steps at once: before
Several steps at once: after PAINITE
BEFOREAFTER
Up to four steps run in order in one pass on the server. Before is a bicubic enlargement. Noise, blur and size were simulated. Photo: Josh Valcarcel, NASA, public domain.
PresetStepsUse for
Clean UpDenoise 0.5Everyday noise and JPEG artifacts
High ISODenoise 0.7, Sharpen 0.25Night, indoor and concert photos
PortraitDenoise 0.5, Faces 0.5People
Rescue BlurDeblur (Motion) 0.5, Sharpen 0.2Shaky shots
Print 2×Denoise 0.4, Sharpen 0.2, Upscale 2×Large prints and heavy crops

On the command line, the same as Print 2×: painite enhance --op denoise:0.4,sharpen:0.2,upscale2x -o out/ photo.tif

Sample photos are public domain or CC0, from Wikimedia Commons. Sources and how each was made are listed in CREDITS.md.