Quality scores¶
Background analysis (ADR-0011: Resumable Background Analysis) gives every photo technical scores from 0 to 1 (higher is better). They are computed on the photo’s preview shrunk to 1024 px on the long edge, so they describe how the photo looks at screen size, not at 100 %. The code is in crates/core/src/quality.rs.
The loupe shows them as percentages under Quality.
Exposure¶
Starts at 1 and is reduced for:
Blown highlights: pixels with any channel at 250 or above, beyond 0.5 % of the image (−0.6 at 10.5 %).
Crushed shadows: pixels whose brightest channel is 5 or below, beyond 2 % of the image (−0.4 at 22 %).
Overall brightness: mean luma outside 20–70 % (up to −0.5).
Dark or bright photos taken on purpose (night scenes, high key) score lower. Use the score to compare photos of the same scene, not across scenes.
Noise¶
The noise level is estimated with Immerkær’s method in the flattest tenth of the image, as a standard deviation in brightness levels (0–255). The score is 0.5 at 5 levels. Clean camera samples measure below 1.5, and high-ISO samples 3–5.
Overall¶
The three combined, weighted towards sharpness: sharpness0.6 × exposure0.3 × noise0.1.
Versions¶
The scores are stored with the analyzer version (technical, version
1). When the algorithm changes, the version is raised and photos are
rescored in the background.