Lens profile
{profile && (
)}
{profile ? (
{profile.maker} {profile.model}
· crop {profile.crop}×
) : (
Search the Lensfun database or pick a match.
)}
setQuery(e.target.value)}
onKeyDown={(e) => {
if (e.key === 'Enter') void runSearch();
}}
/>
{searchMsg &&
{searchMsg}
}
{results.length > 0 && (
{results.map((result) => (
))}
)}
{profile && (
{defaultProfile && (
)}
)}
{profile && (
{(['distortion', 'tca', 'vignetting'] as const).map((key) => {
const labels = { distortion: 'Distortion', tca: 'Chromatic aberration', vignetting: 'Vignetting' };
const bit = key === 'distortion' ? 8 : key === 'tca' ? 1 : 2;
const supported = available === null || (available & bit) !== 0;
return (
);
})}
{lensState?.loading &&
Building correction maps…
}
{lensState?.error &&
{lensState.error}
}
{onLensSplit && (
)}
)}