You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from Reddit: As a former photographer, I have a serious question about your Lightroom alternative (and Premiere/After Effects regarding Log/RAW workflows).
Building a clean-room raw processor in Rust is an impressive engineering feat, but how are you handling Color Science and Input Profiles (DCP/ICC)?
Industry adoption of any RAW converter depends almost entirely on its default color rendering. Proprietary software giants like Phase One (Capture One) or Adobe spend millions on laboratory calibrations, reverse-engineering camera sensors to build custom profiles for skin tones, highlight roll-offs, and color matrices.
Pure math gives a flat, mathematically accurate, but aesthetically unusable image. "Vibe coding" with AI can easily generate code for de-mosaicing (like bilinear or AHD), but AI doesn't have access to custom color science or proprietary camera profiles.
Are you planning to bundle open-source profile databases (like darktable's or RawTherapee's LibRaw/Adobe-compatible DCP parser)?
Or is your AI engine generating its own look-up tables (LUTs) and profiles? If so, how do you simulate accurate or pleasing colors for hundreds of different camera bodies without physical laboratory testing?
Without a solid color science foundation, it’s going to be extremely hard to convince anyone to switch from Adobe or Capture One, no matter how fast the Rust binary is. Curious to hear your thoughts on this!
Here's how it works on main today, as far as I know it. Other contributors may have their own approach, and what the project ships is the maintainers' call.
LightCraft on main doesn't bundle a third-party camera profile database (the one outside source is openly licensed measured sensor spectral data, below), and it doesn't load camera input profiles (DCP, or ICC used as an input profile). ICC is used for display profiles and for image files' own colour spaces. For raws, the default starting colour works like this:
Per-photo camera look. Most raws (Sony, Nikon, Panasonic, Fujifilm, Canon, Pentax, Samsung, Olympus) embed the camera's own JPEG. LightCraft develops a small proxy of the raw and fits four things to that JPEG: a colour matrix, a hue/saturation table, a tone curve and a chroma curve. The aim is for the raw to land on the maker's rendering of the same scene.
The fit is checked. A third of the pixels are held out, and the look is only used if it clearly beats the fallback on them.
The pixels stay raw. Output still comes from the raw data. Nothing is copied from the JPEG, and highlight headroom is kept for editing.
How close it gets. The documented checks compare against each file's camera JPEG (mean ΔE76 at 200 px). On CC0 raw.pixls.us samples, 7 of 10 Sony fits were accepted and went from ΔE 17–26 to 3–10, and 140 of 174 Panasonic/Leica fits were accepted at a median ΔE of 5.0. The neutral fallback is far off by comparison: over 1,150 CC0 files it sits at a median CIEDE2000 of 13.6 and about 10.7 L* too dark. That's "looks like the camera" rather than pixel-identical. The JPEG is the maker's style, not ground truth.
Per-model profiles. For models with a profile, colours pooled from many photos fill in hues a single photo shows too little of.
White balance in Kelvin. 52 bodies have matrices fitted from measured sensor spectral sensitivities (rawtoaces-data, Apache-2.0), so their white balance edits in Kelvin, and those matrices replace the neutral fallback when the JPEG fit isn't accepted. Other bodies edit white balance relative to the as-shot look.
DNG files. These use the file's own colour data (its matrices, hue/sat and look tables, tone curve).
When the fit can't be trusted, it falls back to a partial look or a neutral one, which is flatter. That happens with misaligned lens-corrected JPEGs, nearly colourless scenes, or no embedded JPEG. DNGs (and other raws that carry their own colour matrices) skip the JPEG fit, so they can start darker and less colourful than the camera (#1277).
No AI is involved. The fits are least-squares and quantile matching on the photo itself, with fixed acceptance checks. The method and measurements are in docs/camera-preview-colour.md.
How I measure it, for anyone who wants to check or try other ideas. This is my own local test tooling, not part of LightCraft:
Corpus. The CC0 raw.pixls.us archive plus samples people have submitted with their issues, grouped by body and format. So far I run it per change, on the files that change touches plus controls, not yet as one standing pass over everything. Files whose licence doesn't allow fitting are only ever used as a held-out check.
Reference. The embedded camera JPEG is pulled out of each raw. Files whose JPEG isn't a fair reference (cropped, lens-corrected differently, missing) are listed and dropped from scoring rather than guessed at.
Alignment first. Before colour is compared, the render is aligned to the JPEG with a radial fit (scale plus distortion terms) on high-passed luminance. Fits that don't converge or look implausible are rejected, so lens differences don't show up as colour error.
Metrics. CIEDE2000 and ΔE76, plus signed ΔL*, ΔC* and hue error, broken down by lightness band and hue. That shows where it's off (dark shadows too dark, skin hues rotated, blues desaturated) instead of one average.
Build comparison. The same files run on several builds side by side, so a change is only kept if it helps across bodies and doesn't make others worse.
On the goal itself: my view is that deciding what looks pleasing is the photographer's job, not the raw developer's. What I want to give people is accuracy, meaning the colour the scene actually had under the light it was shot in, as close as it can be measured, with a neutral starting point to take wherever they like. The camera JPEG is the maker's style, so I treat it as a comparison and a sanity check (a wrong matrix or black level shows up against it right away), not as the definition of correct. Why matching the camera JPEG isn't enough on its own:
It learns the shot's settings, not just the camera. A photo taken in Vivid or another creative style teaches the fit that style. Some cases are already handled: a black-and-white JPEG only fits the tone curve, and Sony's DRO is read from the file and compensated. Other in-camera local tone, such as Active D-Lighting or Auto Lighting Optimizer, is local, so no global curve can fully match it.
Per-photo fits can disagree within a batch. The fit depends on which colours happen to be in the frame, so similar shots can start slightly differently. Pooling over many photos of one model helps; I still want to measure how big this is.
The JPEG is 8-bit sRGB with clipped highlights. It says nothing about colours outside sRGB or detail above JPEG white, which are exactly where a raw has more to give.
Not every file has a usable one. Some DNGs have none, and some compacts embed a lens-corrected JPEG that doesn't line up with the raw.
So the JPEG match is a useful camera-style reference, but not an accuracy target. The accuracy-focused directions I'd like to explore:
Colour-chart shots. I don't have any chart raws yet, so this is the biggest gap. A raw of a ColorChecker-style chart in daylight and another under tungsten (or other warm light) lets a body's colour matrix be fitted to the chart's published patch values instead of to a camera JPEG. Two light sources also make white balance accurate between them.
Measured spectral data, where it's openly licensed. That's already how the 52 bodies above get their Kelvin white balance, and more bodies would need more of it.
Physical limits on the fit. Neutral grey must stay neutral, and the matrix has to carry over sensibly between light sources, so one scene can't bend it.
Neutral objects in ordinary photos. Grey cards, white walls and overcast skies in normal samples could check white balance without a chart.
If you have a colour chart, raws of it from your body are about the most useful sample there is. Attaching them to an issue or uploading to raw.pixls.us both work. And if you know of freely licensed sources of chart raws (or measured sensor data) we could use, please point me to them.
Ideas are very welcome, from you or the folks on Reddit, on any part of this: other methods, what to measure, which scenes or bodies to prioritise, how to get closer to accurate scene colour, or anything I haven't thought of. One thing I'd especially like to hear about: approaches that work from raw samples people submit, without lab equipment or third-party profiles, since that's what I've been working with.
If this solves it, please close the issue, thanks! If not, feel free to reply with more.
Is this basically how Lightroom's "CAMERA IN" setting works? Or do they have a priority profile matching major cameras that is being applied?
When the fit can't be trusted, it falls back to a partial look or a neutral one, which is flatter.
I'm noticing the profile is pretty off for some of my Sony A7CR images. They are typically underexpose or high grain images. I'm guess this is what is happening? Here's the side by side of the same image, no edits applied in either.
NOTE: I did setup the test by using "Export: Original + Settings" from LR and then only imported the ARW (drive link) back into LC... I think LR should be exporting the byte identical original ARW, but I'm not 100% sure that's the case...
@ChuckJonas Not quite. As far as I know, Lightroom's camera-matching profiles are built ahead of time for each camera model, so every photo from a body starts from the same profile. LightCraft's fit is made per photo from that photo's own embedded JPEG, and it falls back when the fit doesn't pass its checks. I can't speak to how their profiles are made beyond that.
Underexposed or very noisy frames are a likely place for the fit to be refused, but I'd rather check than guess. Could you open a new issue for the A7CR file, with the side-by-side and the Drive link? Then I can test it there and keep this thread for colour-science ideas and methods. And yes, that's exactly the kind of help that's useful: raws where the result is clearly off, together with what you expected.
LightCraft's fit is made per photo from that photo's own embedded JPEG
Interesting... Curious if you'd get better/more consistent to run the fit over a large sample (I've got 10k+ photos) and generate a dedicated camera profile? I'd be interesting in burning some tokens and CPU to try it out. I'd guess at the very least I could end up with my own profile I'd be able to import? If you have any suggestions or comments on approach here, would love to hear them to help guide the effort.
Could you open a new issue for the A7CR file, with the side-by-side and the Drive link
Yes, pooling many photos does help, and it's already in LightCraft, including for your camera. The ILCE-7CR has a built-in profile fitted from 125 photos (about 450k colour pairs). A photo from a profiled model takes its colour from the profile and fits only its own tone and chroma curves, because picture styles and DRO change per shot. On 26 held-out photos, mean ΔE against the camera JPEG went from 4.07 with per-photo fitting to 3.29 with the profile. Both held-out photos whose own fit had been refused were accepted with the profile.
You can build your own from your library with the CLI (v0.6.0 has it):
It writes ILCE-7CR.json. Put it in your camera-profiles folder (or point LIGHTCRAFT_CAMERA_PROFILES at it) and it replaces the built-in one. The file holds aggregate colour statistics only, no images.
Some suggestions for the approach:
Variety beats volume. A few hundred photos across light (daylight, shade, tungsten, mixed, night) and subjects (skin, foliage, sky, saturated objects) will teach it more than 10k similar frames. The CLI samples at most 4000 pairs per photo and spreads the files evenly over the folders you give it, so pass folders that cover different shoots.
Keep to one creative style, ideally Standard. Vivid, B&W or other styles teach it a different target. Since the profile sets colour only, DRO is less of a problem, but DRO off is the cleanest.
Hold some photos out. Fit on, say, four in five, then render the rest with and without the profile and compare against their camera JPEGs. If the held-out photos don't improve, the bigger pool isn't helping.
Look at the spread, not only the mean. The point of pooling is fewer bad outliers: watch the worst files and the ones that were refused before.
If you run it, I'd be interested in the before/after numbers on your held-out set, and in any photos that get worse. A profile from a different photographer's library is a good check on whether the built-in one generalises.
I do think this issue is going to be a massive hurdle for lightcraft. There's a reason all the other image processors do it this way and I think it needs to follow suit. I've raised a recommendation for how it's done in another issue (and tried my hardest to get the A7R IV calibrated in the existing model)
Yes, pooling many photos does help, and it's already in LightCraft, including for your camera. The ILCE-7CR has a built-in profile fitted from 125 photos (about 450k colour pairs).
Is this automatically applied based on metadata or do I need go find the profile and set it up? When I open the image, the profile just shows "Profile Color". Sorry if this is a simple Q, I've never paid a ton of attention to profile even in LR (because they kinda just work for my use cases).
@ChuckJonas It's automatic, so there's nothing to set up. LightCraft reads the camera model from the raw's metadata. If there's a profile for that model (built in, or your own in the camera-profiles folder), the starting colour uses it.
"Color" in the Profile panel is something else. It's the default look, applied on top of the starting colour, and it adds nothing of its own. The panel doesn't show which camera profile was used. I checked your #1300 file, and it does take its colour from the built-in ILCE-7CR profile.
The DRO tone swap: in your 64 A7R IVA comparisons, keeping the JPEG-fitted tone was closer to Sony's own exports in 63 of 64. That lines up with Color Profile differences in A7CR (LR side by Side #1300, an A7CR frame that comes out about 10 L* darker than its camera JPEG with DRO on. I'm checking it there on current main, across all the Sony samples we have.
The per-model profiles that already exist (ILCE-7CR and ILCE-7M4 are built in, and lightcraft-cli calibrate builds one from your own library) are a step toward the per-camera foundation you describe in #1207. They set colour per model and fit only tone and chroma per photo.
With --pairs and no --out, it only writes the file and does not touch your installed profiles. The file holds, per photo, the camera model, a random-looking id made from a hash of the raw bytes (not the file name or path), whether Sony's Dynamic Range Optimizer was on, and a few thousand pairs of white-balanced camera RGB and the camera JPEG's colour. It has no GPS, serial numbers, file names, dates or image data. The format is documented in docs/camera-preview-colour.md, and it is JSON, so the fields can be read before sending; the pairs themselves are stored as compressed numbers.
On my side, calibrate --from-pairs FILE pools such files with other photographers' files or with raws, and gives the same profile as pooling the raws themselves (tested, byte for byte).
Once that is in a build you have, would you be willing to run it on your ILCE-7CR library? If you are happy to share the file, could you zip it and share it with the "Share colour pairs" issue form that PR adds (it asks for the model, the photo count and a CC0 statement)? Then I can use it, together with other photographers' files, to refit the built-in 7CR profile on more cameras and light than I can test myself.
@QuirkyTurtle94 yes, two things would help, both with your A7R IV library:
Now:lightcraft-cli calibrate --out "D:\some\folder" "D:\your\photos" fits an ILCE-7RM4 profile from your own raws and their camera JPEGs (at least 5 photos, up to 300 spread over the folders by default). With --out it doesn't install anything, so you can compare. If you then put it in the camera-profiles folder, it's used automatically for that model. Telling me where it looks right or wrong compared with your camera's JPEGs, especially on skin, foliage, skies and saturated reds, is the useful part.
Once 1281: calibrate --pairs exports colour pairs, --from-pairs pools them into the fit #1319 is in a build you have:calibrate --pairs 7rm4-pairs.json "D:\your\photos" writes just the colour numbers the fit uses (no images, file names, GPS, serials or dates), and the "Share colour pairs" issue form it adds takes the zipped file with a CC0 statement. Pairs from many different shoots and light are what a built-in profile needs most.
One thing to keep in the agent's instructions: LightCraft's colour work is clean room, so no code or camera data taken from other raw processors (including the matrices in #1207). Everything is fitted from photos and their camera JPEGs.
@QuirkyTurtle94 a bit more on what thousands of photos plus an agent could do, beyond the UI issues. These are the things a small sample set can't show:
Run the whole library on each build. Render every raw with lightcraft-cli render IN -o OUT.jpg --size 1200 and compare it with the JPEG embedded in the raw (mean CIE76 ΔE at 200 px is what the docs use). Report numbers only: files that fail to decode or render, the ΔE spread, and the 20 worst files with their ISO, lens, light and creative style (and DRO setting, which changes the JPEG's tone). That finds decode bugs and colour outliers, and no photos need to leave your machine.
Test calibrate on photos it didn't learn from. Fit an ILCE-7RM4 profile on, say, four fifths of the library (calibrate --out DIR, then put the profile where LightCraft reads it) and render the remaining fifth with and without it. Then split the results by light (daylight, shade, tungsten, flash, mixed) and by subject (skin, foliage, sky, saturated reds). That shows where a pooled profile helps and where it breaks.
Edge cases for the decoder. If you have other bodies or unusual files (compressed or lossless ARW, APS-C crop mode, Pixel Shift, very high ISO, long exposures), run lightcraft-cli render on them and report anything that fails.
For all of these, compare only against the camera's own JPEG, not against another raw processor's output, for the same clean-room reason as before.
@radialmonster I’ve run the calibration and library tests on my A7R IVA (ILCE-7RM4A) using the packaged macOS ARM64 CLI v0.6.0.
Dataset: 2,597 compressed ARWs across 19 shoots, all Standard style and DRO Auto, ISO 100–12,800. All 2,597 rendered successfully.
Calibration: 2,091 training files; 1,925 usable, producing 6.95 million colour pairs. Tested against 506 held-out files:
Camera-JPEG comparison
Baseline
New profile
Mean ΔE76
5.397
5.197
Median
5.007
4.806
95th percentile
9.571
9.467
442/506 improved, with a worst regression of +0.414 ΔE. Modest improvement overall, but some substantial individual wins.
Two useful sky-scene examples:
d678ef9020f57ba2: 17.739 → 1.232 ΔE. Diagnostic logs show spectral-colour fallback without the profile, then an accepted camera-JPEG fit with it.
6b38d58f8bb1d6bb: 17.484 → 17.484. Both runs retain the spectral-colour fallback.
These seem useful for investigating fit acceptance/fallback alongside profile coverage. I have diagnostic logs for both.
Method/limits: RAW-only temporary copies excluded neighbouring XMP edits; 1200px renders compared against embedded Sony JPEGs at 200px, with orientation and ICC handling. No other raw processor’s output was used. The split kept ten-file sequences together, with no exact duplicates crossing it, but wasn’t fully shoot-independent. Scores include geometric/detail differences because no spatial registration was performed; they measure camera-JPEG agreement, not colour-chart accuracy.
The measurements are available as a single CSV in the follow-up below: one row per photo, with ISO/lens metadata, baseline scores and held-out before/after results. It contains opaque IDs and no photos or file paths. The candidate profile remains uninstalled. Colour-pair export is still pending a build with --pairs.
Would the diagnostic logs and candidate ILCE-7RM4A profile be the most useful next contribution, or should I prioritise colour-pair export once available?
Download the measurements CSV — 2,597 rows, with baseline results and held-out before/after measurements. Data and column headings only; no comment draft, photos or file paths.
@QuirkyTurtle94 thank you, this is a very useful study, and the numbers zip is easy to work with.
The pattern I see in it: the top of your worst list is all 200-600mm shots at 1/250 to 1/2000 (the worst ten at 1/1000 to 1/2000), and the worst ten are 14 to 25 L* darker than the camera JPEG (the top three about −25 L*, almost all of their error). Your 6b38d58f8bb1d6bb stays at 17.5 ΔE with the profile. That points at how the starting look is chosen when the per-file fit is rejected and the spectral colour is used, rather than at the profile itself. d678ef9020f57ba2 shows the same kind of photo coming out right once a fit is accepted.
On what to send next:
Now, most useful: the diagnostic logs for those two, and if possible two or three of the raws from that dark set (61f15a816b12aa74, fba14d27f94944ce, 6b38d58f8bb1d6bb or similar), only if they have no people in them. Attaching them to a comment here as a google drive link or uploading them to https://raw.pixls.us both work. With the raw I can reproduce it on current main and look at the fallback.
Once a build has --pairs: the pairs file, shared with the form. That pools with other photographers' 7RM4/7RM4A photos, so it's the better input for a built-in profile than a single profile file.
The candidate profile is welcome too, as a comparison.
@QuirkyTurtle94 I should have said how to get those logs. LightCraft prints its camera-look diagnostics when the LIGHTCRAFT_PROFILE environment variable is set (0.6.0 has it too). With the command-line build (lightcraft-cli-0.6.0-macos-universal.zip on the release page, or the same tool from your study), run this once per raw, in a terminal:
Use your real file names; the ids are just what your study called them. Please do the two files (6b38d58f8bb1d6bb and d678ef9020f57ba2) and, if you can, the 2-3 raws without people (61f15a816b12aa74, fba14d27f94944ce). Keep your setup as it was in the study, so the logs match your numbers.
The lines I need start with [profile]:
camera look holdout RMS a -> b says whether the per-photo fit was tried and how well it held up.
camera look partial ... means it fell back to the partial look.
camera colour from spectral sensitivities means the fit was rejected and it used the fallback I suspect is too dark on bright sky.
N of M proxy pixels have a clipped sensor channel shows how much of the preview was clipped.
The logs hold only numbers and timings, no file paths or metadata, but have a quick look before attaching. Attach the -log.txt files here; the raws without people can go here or on https://raw.pixls.us.
@radialmonster Thanks for the logging instructions. These runs use LIGHTCRAFT_PROFILE=1, the same packaged macOS ARM64 CLI v0.6.0 as the study, --size 1200, RAW-only inputs (no adjacent XMP), and the same isolated baseline/trained profile directories.
d678ef9020f57ba2: baseline uses spectral fallback; trained accepts the per-photo look, holdout RMS 0.14086 → 0.00438 (6,135 channels), with camera profile available true and DRO tone replaced true.
6b38d58f8bb1d6bb: both baseline and trained use the Sony ILCE-7RM4 spectral fallback. Neither log prints a holdout-RMS or partial-look line.
I also ran the other two requested dark frames with the baseline setup: 61f15a816b12aa74 and fba14d27f94944ce both use spectral fallback; they report 22/6,144 and 58/6,144 proxy pixels with a clipped sensor channel respectively.
All six logs are in the single text attachment below, labelled by study ID and baseline/trained run. Only the final output-file path was replaced with the opaque study ID; the diagnostics are otherwise unchanged.
Candidate profile: ILCE-7RM4A.json. This is the same 1,925-usable-file training candidate evaluated against the 506 held-out files, provided for comparison.
I submitted the three requested people-free camera originals to raw.pixls.us under CC0, using the study IDs as filenames. The site returned its submission confirmation, but the new files are not yet in its public ILCE-7RM4A listing, so I do not have download links yet. File contents were unchanged (verified by SHA-256 against the study originals):
Pooling/calibration still can't solve the issue with embedded camera profiles though. I for example shoot with the camera set to its flat profile such that I can better assess the dynamic range of the RAW image, without clipping due to in-camera grading of the preview image. The starting point for editing in lightcraft thus looks quite dull for my images. This is particularly important once I'd like to import my photo library from some other software.
One solution I can think of: Whenever RAW files from a new/uncalibrated camera are imported, show the user an option to import an appropriate camera color profile from a user-supplied DNG file. Whether we respect the ProfileEmbedPolicy field is another question ("allow copying" would allow storing it on the system and using it for processing other DNGs, but only DNGs)..
Activity
radialmonster commentedon Oct 12, 2026
Here's how it works on main today, as far as I know it. Other contributors may have their own approach, and what the project ships is the maintainers' call.
LightCraft on main doesn't bundle a third-party camera profile database (the one outside source is openly licensed measured sensor spectral data, below), and it doesn't load camera input profiles (DCP, or ICC used as an input profile). ICC is used for display profiles and for image files' own colour spaces. For raws, the default starting colour works like this:
When the fit can't be trusted, it falls back to a partial look or a neutral one, which is flatter. That happens with misaligned lens-corrected JPEGs, nearly colourless scenes, or no embedded JPEG. DNGs (and other raws that carry their own colour matrices) skip the JPEG fit, so they can start darker and less colourful than the camera (#1277).
No AI is involved. The fits are least-squares and quantile matching on the photo itself, with fixed acceptance checks. The method and measurements are in
docs/camera-preview-colour.md.How I measure it, for anyone who wants to check or try other ideas. This is my own local test tooling, not part of LightCraft:
On the goal itself: my view is that deciding what looks pleasing is the photographer's job, not the raw developer's. What I want to give people is accuracy, meaning the colour the scene actually had under the light it was shot in, as close as it can be measured, with a neutral starting point to take wherever they like. The camera JPEG is the maker's style, so I treat it as a comparison and a sanity check (a wrong matrix or black level shows up against it right away), not as the definition of correct. Why matching the camera JPEG isn't enough on its own:
So the JPEG match is a useful camera-style reference, but not an accuracy target. The accuracy-focused directions I'd like to explore:
If you have a colour chart, raws of it from your body are about the most useful sample there is. Attaching them to an issue or uploading to raw.pixls.us both work. And if you know of freely licensed sources of chart raws (or measured sensor data) we could use, please point me to them.
Ideas are very welcome, from you or the folks on Reddit, on any part of this: other methods, what to measure, which scenes or bodies to prioritise, how to get closer to accurate scene colour, or anything I haven't thought of. One thing I'd especially like to hear about: approaches that work from raw samples people submit, without lab equipment or third-party profiles, since that's what I've been working with.
If this solves it, please close the issue, thanks! If not, feel free to reply with more.
ChuckJonas commentedon Oct 12, 2026
@radialmonster
Is this basically how Lightroom's "CAMERA IN" setting works? Or do they have a priority profile matching major cameras that is being applied?
I'm noticing the profile is pretty off for some of my Sony A7CR images. They are typically underexpose or high grain images. I'm guess this is what is happening? Here's the side by side of the same image, no edits applied in either.
NOTE: I did setup the test by using "Export: Original + Settings" from LR and then only imported the ARW (drive link) back into LC... I think LR should be exporting the byte identical original ARW, but I'm not 100% sure that's the case...
Is there anything I can do to help?
radialmonster commentedon Oct 12, 2026
@ChuckJonas Not quite. As far as I know, Lightroom's camera-matching profiles are built ahead of time for each camera model, so every photo from a body starts from the same profile. LightCraft's fit is made per photo from that photo's own embedded JPEG, and it falls back when the fit doesn't pass its checks. I can't speak to how their profiles are made beyond that.
Underexposed or very noisy frames are a likely place for the fit to be refused, but I'd rather check than guess. Could you open a new issue for the A7CR file, with the side-by-side and the Drive link? Then I can test it there and keep this thread for colour-science ideas and methods. And yes, that's exactly the kind of help that's useful: raws where the result is clearly off, together with what you expected.
ChuckJonas commentedon Oct 12, 2026
@radialmonster
Interesting... Curious if you'd get better/more consistent to run the fit over a large sample (I've got 10k+ photos) and generate a dedicated camera profile? I'd be interesting in burning some tokens and CPU to try it out. I'd guess at the very least I could end up with my own profile I'd be able to import? If you have any suggestions or comments on approach here, would love to hear them to help guide the effort.
Done via #1300
radialmonster commentedon Oct 12, 2026
Thanks for opening #1300.
Yes, pooling many photos does help, and it's already in LightCraft, including for your camera. The ILCE-7CR has a built-in profile fitted from 125 photos (about 450k colour pairs). A photo from a profiled model takes its colour from the profile and fits only its own tone and chroma curves, because picture styles and DRO change per shot. On 26 held-out photos, mean ΔE against the camera JPEG went from 4.07 with per-photo fitting to 3.29 with the profile. Both held-out photos whose own fit had been refused were accepted with the profile.
You can build your own from your library with the CLI (v0.6.0 has it):
It writes
ILCE-7CR.json. Put it in your camera-profiles folder (or pointLIGHTCRAFT_CAMERA_PROFILESat it) and it replaces the built-in one. The file holds aggregate colour statistics only, no images.Some suggestions for the approach:
If you run it, I'd be interested in the before/after numbers on your held-out set, and in any photos that get worse. A profile from a different photographer's library is a good check on whether the built-in one generalises.
QuirkyTurtle94 commentedon Oct 12, 2026
I do think this issue is going to be a massive hurdle for lightcraft. There's a reason all the other image processors do it this way and I think it needs to follow suit. I've raised a recommendation for how it's done in another issue (and tried my hardest to get the A7R IV calibrated in the existing model)
ChuckJonas commentedon Oct 12, 2026
@radialmonster
Is this automatically applied based on metadata or do I need go find the profile and set it up? When I open the image, the profile just shows "Profile Color". Sorry if this is a simple Q, I've never paid a ton of attention to profile even in LR (because they kinda just work for my use cases).
radialmonster commentedon Oct 12, 2026
@ChuckJonas It's automatic, so there's nothing to set up. LightCraft reads the camera model from the raw's metadata. If there's a profile for that model (built in, or your own in the camera-profiles folder), the starting colour uses it.
"Color" in the Profile panel is something else. It's the default look, applied on top of the starting colour, and it adds nothing of its own. The panel doesn't show which camera profile was used. I checked your #1300 file, and it does take its colour from the built-in ILCE-7CR profile.
ChuckJonas commentedon Oct 12, 2026
@radialmonster thanks for explaining.
I'll mess around with the
lightcraft-cli calibratetool and share my findingsradialmonster commentedon Oct 12, 2026
@QuirkyTurtle94 Thanks, your #1207 and #763 are useful here. Two points from them are being worked on now:
The per-model profiles that already exist (ILCE-7CR and ILCE-7M4 are built in, and
lightcraft-cli calibratebuilds one from your own library) are a step toward the per-camera foundation you describe in #1207. They set colour per model and fit only tone and chroma per photo.radialmonster commentedon Oct 12, 2026
PR #1319 adds a way to export just the colour numbers the camera profile is fitted from, with no images in it:
With
--pairsand no--out, it only writes the file and does not touch your installed profiles. The file holds, per photo, the camera model, a random-looking id made from a hash of the raw bytes (not the file name or path), whether Sony's Dynamic Range Optimizer was on, and a few thousand pairs of white-balanced camera RGB and the camera JPEG's colour. It has no GPS, serial numbers, file names, dates or image data. The format is documented indocs/camera-preview-colour.md, and it is JSON, so the fields can be read before sending; the pairs themselves are stored as compressed numbers.On my side,
calibrate --from-pairs FILEpools such files with other photographers' files or with raws, and gives the same profile as pooling the raws themselves (tested, byte for byte).Once that is in a build you have, would you be willing to run it on your ILCE-7CR library? If you are happy to share the file, could you zip it and share it with the "Share colour pairs" issue form that PR adds (it asks for the model, the photo count and a CC0 statement)? Then I can use it, together with other photographers' files, to refit the built-in 7CR profile on more cameras and light than I can test myself.
QuirkyTurtle94 commentedon Oct 12, 2026
@radialmonster thanks for the clarification - similarly is there anything I can do to help in this? Got thousands of images and billions of tokens!
radialmonster commentedon Oct 12, 2026
@QuirkyTurtle94 yes, two things would help, both with your A7R IV library:
lightcraft-cli calibrate --out "D:\some\folder" "D:\your\photos"fits an ILCE-7RM4 profile from your own raws and their camera JPEGs (at least 5 photos, up to 300 spread over the folders by default). With--outit doesn't install anything, so you can compare. If you then put it in the camera-profiles folder, it's used automatically for that model. Telling me where it looks right or wrong compared with your camera's JPEGs, especially on skin, foliage, skies and saturated reds, is the useful part.calibrate --pairs 7rm4-pairs.json "D:\your\photos"writes just the colour numbers the fit uses (no images, file names, GPS, serials or dates), and the "Share colour pairs" issue form it adds takes the zipped file with a CC0 statement. Pairs from many different shoots and light are what a built-in profile needs most.Code review on #1319 is welcome too.
radialmonster commentedon Oct 12, 2026
@QuirkyTurtle94 and on the tokens: if you'd like to point an agent at something, these two are open and unclaimed, and both build on what's here:
calibrate: build, check and choose per-model profiles, with several profiles per camera.One thing to keep in the agent's instructions: LightCraft's colour work is clean room, so no code or camera data taken from other raw processors (including the matrices in #1207). Everything is fitted from photos and their camera JPEGs.
radialmonster commentedon Oct 12, 2026
@QuirkyTurtle94 a bit more on what thousands of photos plus an agent could do, beyond the UI issues. These are the things a small sample set can't show:
lightcraft-cli render IN -o OUT.jpg --size 1200and compare it with the JPEG embedded in the raw (mean CIE76 ΔE at 200 px is what the docs use). Report numbers only: files that fail to decode or render, the ΔE spread, and the 20 worst files with their ISO, lens, light and creative style (and DRO setting, which changes the JPEG's tone). That finds decode bugs and colour outliers, and no photos need to leave your machine.calibrateon photos it didn't learn from. Fit an ILCE-7RM4 profile on, say, four fifths of the library (calibrate --out DIR, then put the profile where LightCraft reads it) and render the remaining fifth with and without it. Then split the results by light (daylight, shade, tungsten, flash, mixed) and by subject (skin, foliage, sky, saturated reds). That shows where a pooled profile helps and where it breaks.lightcraft-cli renderon them and report anything that fails.For all of these, compare only against the camera's own JPEG, not against another raw processor's output, for the same clean-room reason as before.
QuirkyTurtle94 commentedon Oct 12, 2026
@radialmonster I’ve run the calibration and library tests on my A7R IVA (ILCE-7RM4A) using the packaged macOS ARM64 CLI v0.6.0.
Dataset: 2,597 compressed ARWs across 19 shoots, all Standard style and DRO Auto, ISO 100–12,800. All 2,597 rendered successfully.
Calibration: 2,091 training files; 1,925 usable, producing 6.95 million colour pairs. Tested against 506 held-out files:
442/506 improved, with a worst regression of +0.414 ΔE. Modest improvement overall, but some substantial individual wins.
Two useful sky-scene examples:
d678ef9020f57ba2: 17.739 → 1.232 ΔE. Diagnostic logs show spectral-colour fallback without the profile, then an accepted camera-JPEG fit with it.6b38d58f8bb1d6bb: 17.484 → 17.484. Both runs retain the spectral-colour fallback.These seem useful for investigating fit acceptance/fallback alongside profile coverage. I have diagnostic logs for both.
Method/limits: RAW-only temporary copies excluded neighbouring XMP edits; 1200px renders compared against embedded Sony JPEGs at 200px, with orientation and ICC handling. No other raw processor’s output was used. The split kept ten-file sequences together, with no exact duplicates crossing it, but wasn’t fully shoot-independent. Scores include geometric/detail differences because no spatial registration was performed; they measure camera-JPEG agreement, not colour-chart accuracy.
The measurements are available as a single CSV in the follow-up below: one row per photo, with ISO/lens metadata, baseline scores and held-out before/after results. It contains opaque IDs and no photos or file paths. The candidate profile remains uninstalled. Colour-pair export is still pending a build with
--pairs.Would the diagnostic logs and candidate ILCE-7RM4A profile be the most useful next contribution, or should I prioritise colour-pair export once available?
QuirkyTurtle94 commentedon Oct 12, 2026
Download the measurements CSV — 2,597 rows, with baseline results and held-out before/after measurements. Data and column headings only; no comment draft, photos or file paths.
radialmonster commentedon Oct 12, 2026
@QuirkyTurtle94 thank you, this is a very useful study, and the numbers zip is easy to work with.
The pattern I see in it: the top of your worst list is all 200-600mm shots at 1/250 to 1/2000 (the worst ten at 1/1000 to 1/2000), and the worst ten are 14 to 25 L* darker than the camera JPEG (the top three about −25 L*, almost all of their error). Your
6b38d58f8bb1d6bbstays at 17.5 ΔE with the profile. That points at how the starting look is chosen when the per-file fit is rejected and the spectral colour is used, rather than at the profile itself.d678ef9020f57ba2shows the same kind of photo coming out right once a fit is accepted.On what to send next:
61f15a816b12aa74,fba14d27f94944ce,6b38d58f8bb1d6bbor similar), only if they have no people in them. Attaching them to a comment here as a google drive link or uploading them to https://raw.pixls.us both work. With the raw I can reproduce it on current main and look at the fallback.--pairs: the pairs file, shared with the form. That pools with other photographers' 7RM4/7RM4A photos, so it's the better input for a built-in profile than a single profile file.radialmonster commentedon Oct 12, 2026
@QuirkyTurtle94 I should have said how to get those logs. LightCraft prints its camera-look diagnostics when the
LIGHTCRAFT_PROFILEenvironment variable is set (0.6.0 has it too). With the command-line build (lightcraft-cli-0.6.0-macos-universal.zipon the release page, or the same tool from your study), run this once per raw, in a terminal:macOS / Linux:
Windows PowerShell:
Use your real file names; the ids are just what your study called them. Please do the two files (6b38d58f8bb1d6bb and d678ef9020f57ba2) and, if you can, the 2-3 raws without people (61f15a816b12aa74, fba14d27f94944ce). Keep your setup as it was in the study, so the logs match your numbers.
The lines I need start with
[profile]:camera look holdout RMS a -> bsays whether the per-photo fit was tried and how well it held up.camera look partial ...means it fell back to the partial look.camera colour from spectral sensitivitiesmeans the fit was rejected and it used the fallback I suspect is too dark on bright sky.N of M proxy pixels have a clipped sensor channelshows how much of the preview was clipped.The logs hold only numbers and timings, no file paths or metadata, but have a quick look before attaching. Attach the
-log.txtfiles here; the raws without people can go here or on https://raw.pixls.us.QuirkyTurtle94 commentedon Oct 12, 2026
@radialmonster Thanks for the logging instructions. These runs use
LIGHTCRAFT_PROFILE=1, the same packaged macOS ARM64 CLI v0.6.0 as the study,--size 1200, RAW-only inputs (no adjacent XMP), and the same isolated baseline/trained profile directories.d678ef9020f57ba2: baseline uses spectral fallback; trained accepts the per-photo look, holdout RMS 0.14086 → 0.00438 (6,135 channels), withcamera profile available trueandDRO tone replaced true.6b38d58f8bb1d6bb: both baseline and trained use the Sony ILCE-7RM4 spectral fallback. Neither log prints a holdout-RMS or partial-look line.61f15a816b12aa74andfba14d27f94944ceboth use spectral fallback; they report 22/6,144 and 58/6,144 proxy pixels with a clipped sensor channel respectively.All six logs are in the single text attachment below, labelled by study ID and baseline/trained run. Only the final output-file path was replaced with the opaque study ID; the diagnostics are otherwise unchanged.
Candidate profile: ILCE-7RM4A.json. This is the same 1,925-usable-file training candidate evaluated against the 506 held-out files, provided for comparison.
Download camera-look-diagnostics.txt
I submitted the three requested people-free camera originals to raw.pixls.us under CC0, using the study IDs as filenames. The site returned its submission confirmation, but the new files are not yet in its public ILCE-7RM4A listing, so I do not have download links yet. File contents were unchanged (verified by SHA-256 against the study originals):
61f15a816b12aa74.ARWe4315ea5b6d5087024d700036c4c0d0943569ba8999656b7df9d6b402a6de203fba14d27f94944ce.ARW37eba1e023374315d69c63d96ec6a1c65d40c87a51a692de259b793d7a66f1276b38d58f8bb1d6bb.ARWbeff7231a8ad3867706f4f3abd1626f219396afed04ef3e2bec6c49a48855099Colour-pair export remains pending a build with
--pairs; the attached profile is the comparison candidate, not a pairs export.stephtr commentedon Oct 12, 2026
Pooling/calibration still can't solve the issue with embedded camera profiles though. I for example shoot with the camera set to its flat profile such that I can better assess the dynamic range of the RAW image, without clipping due to in-camera grading of the preview image. The starting point for editing in lightcraft thus looks quite dull for my images. This is particularly important once I'd like to import my photo library from some other software.
One solution I can think of: Whenever RAW files from a new/uncalibrated camera are imported, show the user an option to import an appropriate camera color profile from a user-supplied DNG file. Whether we respect the ProfileEmbedPolicy field is another question ("allow copying" would allow storing it on the system and using it for processing other DNGs, but only DNGs)..