Match EXIF lens names by brand and share team calibrations

EXIF folds the brand into the focal range ("EF75-300mm"), so split letters
from digits before scoring, keep the score a pure name score that a caller can
trust, and rank a same-mount-family lens higher without filtering. Auto-match
now declines below 0.75 rather than applying the best of a bad list.

Lenses the bundled database lacks can be measured in-house: /api/lens-profiles
stores calibrations in SQLite, the Optics panel edits them and marks them
"Team", and search treats them as ordinary entries.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2026-11-28 05:49:47 +00:00
parent 16456c3c69
commit 749047ae9e
13 changed files with 1363 additions and 15 deletions
+66
View File
@@ -4844,6 +4844,7 @@ figcaption {
.lens-default-manage {
display: flex;
justify-content: flex-end;
gap: 4px;
margin-top: 4px;
}
@@ -4851,6 +4852,71 @@ figcaption {
width: min(640px, 100%);
}
/* Team-calibrated lens profiles */
.lens-calib-modal {
width: min(880px, 100%);
}
.lens-calib-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 8px;
margin-bottom: 8px;
}
.lens-calib-field {
display: flex;
flex-direction: column;
gap: 3px;
min-width: 0;
}
.lens-calib-field .text-input {
width: 100%;
}
.lens-calib-section {
margin-top: 14px;
padding: 10px 12px;
border: 1px solid var(--line);
border-radius: 7px;
background: var(--panel-2);
}
.lens-calib-section > header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
}
.lens-calib-row {
display: grid;
gap: 6px;
align-items: end;
margin-top: 6px;
}
.lens-calib-row.cols-distortion {
grid-template-columns: 90px 130px repeat(3, minmax(0, 1fr)) 28px;
}
.lens-calib-row.cols-tca {
grid-template-columns: 90px 110px repeat(6, minmax(0, 1fr)) 28px;
}
.lens-calib-row.cols-vignetting {
grid-template-columns: 90px 90px 100px repeat(3, minmax(0, 1fr)) 28px;
}
.lens-default-actions {
display: flex;
align-items: center;
gap: 4px;
flex-shrink: 0;
}
.settings-kicker {
display: block;
margin-bottom: 3px;