Photo Lens Correction
Lensfun, Adobe Lens Profile Creator, DxO Optics modules — vignette, distortion, and chromatic aberration.
Every lens has signature distortion (barrel / pincushion), vignetting, chromatic aberration, and sometimes diffraction softening. Modern raw developers correct all of these from a per-lens profile — automatically when the lens reports its model in EXIF. Profiles are the sleeper differentiator between "OSS is fine" and "DxO is worth the money." For the develop apps that consume profiles see Photo RAW Editors; for sharpen / denoise math that goes alongside, see AI Denoise & Upscale.
Free / OSS profile databases
- ★ Lensfun — LGPL; XML database of ~3,000 lens profiles + a small C library that consumes them. Used by darktable, RawTherapee, GIMP UFRaw, RawStudio. Community-curated; coverage is excellent for popular lenses, hit-or-miss for niche / vintage glass. Default OSS path.
- Adobe LCP database — Adobe-published Lens Correction Profiles; redistributable. Used by Lightroom, Camera Raw, RawTherapee (yes, RT reads LCPs), and ART. Often higher-quality than Lensfun for lenses Adobe profiles directly.
- darktable's lens module — wraps Lensfun; includes manual-correction mode.
Profile creation tools
- Adobe Lens Profile Creator — free download from Adobe Labs (still works in 2026 despite being unmaintained for years). Outputs
.lcpfiles that Lightroom / Camera Raw / ART / RT consume. Requires shooting a flat target at multiple focal lengths and apertures. lensfun-update-data— pull the latest Lensfun XML; update monthly if you have new gear.- lensfun_calibrate — manual calibration helper for adding new lenses to Lensfun.
Paid / commercial (the gold standard for optics)
- ★ DxO Optics Modules — bundled with DxO PhotoLab and DxO PureRAW (see AI Denoise & Upscale). DxO measures every supported camera + lens combination in a lab; corrections are noticeably better than Lensfun / LCP on edge / corner sharpness, distortion, and vignette. Often cited as a primary reason to buy into DxO.
- Capture One built-in lens correction — paid; profile per supported lens; very good on Phase One / Hasselblad / supported third-party.
- Lightroom Classic Lens Corrections panel — included; reads LCPs + has manual sliders. Adobe maintains a large profile library.
- PhaseOne / Hasselblad firmware-baked corrections — for medium format.
Manual correction (no profile available)
- ★ darktable lens module → manual mode — set distortion (k1/k2), vignette, CA sliders by eye. Annoying but works for any lens.
- RawTherapee → Distortion / Vignetting / CA panels — same.
- Lightroom → Lens Corrections → Manual — same.
- GIMP "Lens Distortion" filter — manual; for one-off corrections.
- Hugin's
tca_correct— CLI for chromatic aberration on a single image; useful for batch.
Specific corrections
- Geometric distortion — barrel (wide), pincushion (tele), mustache (some zooms). Corrected by polynomial warping.
- Vignetting — light falloff at corners; corrected by radial gain. Be careful: too much correction amplifies corner noise.
- Chromatic aberration — lateral CA (color fringe at edges) is profile-correctable; longitudinal CA (purple/green halos at high contrast) needs different math (defringe).
- Diffraction — softness at small apertures (f/16+); corrected by deconvolution. DxO's DeepPRIME diffraction handling is uniquely strong; OSS tools approximate.
- Sensor-corner color cast — wide-angle lenses on stacked-sensor mirrorless bodies; usually camera-internal, occasionally needs raw-level correction.
Drone / specialty
- DJI raws — DJI embeds an
OpcodeListin the DNG; Lightroom / DxO honor it automatically. darktable / RT support is partial. - Fish-eye dewarping — Hugin's
fullaor PTLens; defish to rectilinear or equirectangular. - Tilt-shift — geometric correction less needed (these lenses don't distort), but vignette correction matters.
Patterns to know
- Profile correction first, in the raw developer — before crop, before tone curve. Otherwise you're correcting cropped pixels.
- Auto-apply on import — Lightroom and Capture One can apply lens correction automatically on import via metadata-based profile match. Save you a click per shoot.
- Don't double-correct — some lenses report their own metadata-baked corrections (most modern mirrorless do); turn off the profile if your raws come in pre-corrected.
- CA correction is almost always free wins — turn it on globally.
- Vignette correction at high ISO can amplify noise — denoise first, then vignette-correct; or use partial correction.
What's changing in 2024–2026
- Mirrorless metadata-baked corrections everywhere — most modern mirrorless raws come with distortion + vignette pre-applied; less work for the developer but also less control.
- DxO + DeepPRIME XD diffraction-aware sharpening — combined denoise + lens softness recovery. Hard for OSS to match.
- Adobe Lens Blur (synthetic bokeh) — different problem (subject masking + depth) but in the same panel; growing in 2024–2026 Lightroom builds.
Pick this if…
- Default OSS path: Lensfun (used automatically by darktable / RawTherapee).
- OSS but Lensfun lacks your lens: install Adobe LCPs (RawTherapee and ART read them).
- Best-in-class corner sharpness, paid: DxO PhotoLab or PureRAW (Optics Modules).
- Niche / vintage / adapted glass: manual correction in darktable or RT.
- Drone work: Lightroom or DxO honor DJI's embedded corrections; OSS partial.
- Build your own profile: Adobe Lens Profile Creator (still free, still works).