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
{{ message }}
Repository navigation
[Bug Report] [LightCraft] Auto editing photos #3094
I shoot in raw on my Canon camera and i export .CR3 files. when i import them into light craft it automatically puts on a filter, distorts the photos, adds vignette and there is no way for me to remove it. im wondering if there is a work around for that.
Operating system and version
Windows 11 V0.14.0
Ticket details
App
LightCraft
Type
Bug Report
Reported by
RSVPHOTOGRAPHY (Discord username: rsvphotography_2021) — Discord user ID 1510100514912862318
Submitted
2026-10-26 19:42:43 UTC
Discord server
ArtCraft (1359579021108842617)
Submitted from channel
1558917176453374102
Submission ID
TR-19QYDA0G6J
Submitted through Discord by RSVPHOTOGRAPHY and created by the Ticket Relay integration on their behalf. The reporter may not have a GitHub account, so replies here will not reach them automatically.
Thanks for the report! To look into this, we need a sample file that shows the problem and a screenshot or the exact error message. Please add them in a comment here, or open a new ticket with the details.
I looked into this with CC0 Canon CR3 samples from raw.pixls.us (EOS R100, R50, R10, R7, RP, R6 Mark II, M50, M50 Mark II, 250D, 850D) on current main (662df66), Windows 11, CPU rendering.
What is happening. Import doesn't add an edit to a CR3. The photo gets the usual raw defaults: sharpening 40, colour noise reduction 25, as-shot white balance, lens corrections off. Reset Edits goes back to those. What changes is which picture you see. In the grid, an unedited raw shows the JPEG the camera embedded in the CR3. Opening it shows LightCraft's render of the raw data, and so does the grid once the photo is edited. Canon corrects lens distortion and vignetting in that JPEG but not in the raw data, and LightCraft has no Canon lens data yet, so the render shows the lens uncorrected.
The R100 sample (RF-S 18-45mm at 18 mm, a lens that relies on this correction) shows all three things in this report:
barrel distortion and a wider field of view than the camera JPEG;
corners 5.5 L* darker;
mean CIE76 ΔE of 12.0 from the camera JPEG, measured at 200 px.
The other samples are within ΔE 2.1–4.5 of their camera JPEGs. The M50 (EF-M 18-150mm at 18 mm) and the 250D (EF 40mm) have darker corners (−6.5 and −4.0 L*), and the M50 is slightly distorted. Over the whole frame, lightness and colourfulness match the camera JPEG within about 1 L* and 1 chroma unit. So the "filter" is the uncorrected lens, not a colour change.
Workaround in 0.14.0: Edit → Optics → Manual → Distortion and Vignetting. On the R100 sample, Distortion +55 with Vignetting 0 brings the render to ΔE 4.6 of the camera JPEG, with the corners at +1.4 L*. The right value depends on the lens and focal length, and is smaller when zoomed in. Another option needs an environment variable: point LIGHTCRAFT_LENSFUN_DIR at a copy of lensfun's data/db. With it, this lens is found, Enable Profile Corrections turns on at import, and the corners come to about 1.5 L* of the camera JPEG.
Fix in progress:#3073 by @OneSlips does the same without any setup. It downloads lensfun's database on first run and looks up the photos already in the library. It doesn't change the lookup itself, so the result above (lensfun commit 43f9e001, the one #3073 pins) is what this file would get. #2644 by @ericspooner bundles Canon EF/RF profiles instead. Both are tracked in #329; #3032 (250D) and #2192 are similar reports. Separately, the camera-colour fit pairs the uncorrected raw with the corrected JPEG for this file (held-out RMS 0.078, against 0.016–0.030 for the other samples). #2675 by @r3d42-git aligns those pairs through the lens profile for other raw formats but leaves CR3 as it is, so CR3 could join it later.
From the user's side this is #329, so it can close once lens profiles reach Canon raws.
Thanks for the investigation and for connecting this with #2675. CR3 was deliberately excluded to preserve its existing orientation and framing alignment. Extending the profile-based correspondence alignment to CR3 looks worth investigating, provided it is validated against that existing path. The R100 case and the public RAW/C-RAW samples would be useful starting points.
Update: I’ve opened #3138 to extend the guarded lens-profile correspondence alignment to CR3. Tested with 22 public CR3 files, including R100 RAW/C-RAW and R6 Mark II variants: the R100 alignment improves, while the other samples retain their existing results. This complements the lens-profile availability work in #3073. The separate CI prerequisite is #3136.
Activity
ticket-craft commentedon Oct 26, 2026
Thanks for the report! To look into this, we need a sample file that shows the problem and a screenshot or the exact error message. Please add them in a comment here, or open a new ticket with the details.
insideTheFlux commentedon Oct 27, 2026
I looked into this with CC0 Canon CR3 samples from raw.pixls.us (EOS R100, R50, R10, R7, RP, R6 Mark II, M50, M50 Mark II, 250D, 850D) on current main (662df66), Windows 11, CPU rendering.
What is happening. Import doesn't add an edit to a CR3. The photo gets the usual raw defaults: sharpening 40, colour noise reduction 25, as-shot white balance, lens corrections off. Reset Edits goes back to those. What changes is which picture you see. In the grid, an unedited raw shows the JPEG the camera embedded in the CR3. Opening it shows LightCraft's render of the raw data, and so does the grid once the photo is edited. Canon corrects lens distortion and vignetting in that JPEG but not in the raw data, and LightCraft has no Canon lens data yet, so the render shows the lens uncorrected.
The R100 sample (RF-S 18-45mm at 18 mm, a lens that relies on this correction) shows all three things in this report:
The other samples are within ΔE 2.1–4.5 of their camera JPEGs. The M50 (EF-M 18-150mm at 18 mm) and the 250D (EF 40mm) have darker corners (−6.5 and −4.0 L*), and the M50 is slightly distorted. Over the whole frame, lightness and colourfulness match the camera JPEG within about 1 L* and 1 chroma unit. So the "filter" is the uncorrected lens, not a colour change.
Workaround in 0.14.0: Edit → Optics → Manual → Distortion and Vignetting. On the R100 sample, Distortion +55 with Vignetting 0 brings the render to ΔE 4.6 of the camera JPEG, with the corners at +1.4 L*. The right value depends on the lens and focal length, and is smaller when zoomed in. Another option needs an environment variable: point
LIGHTCRAFT_LENSFUN_DIRat a copy of lensfun'sdata/db. With it, this lens is found, Enable Profile Corrections turns on at import, and the corners come to about 1.5 L* of the camera JPEG.Fix in progress: #3073 by @OneSlips does the same without any setup. It downloads lensfun's database on first run and looks up the photos already in the library. It doesn't change the lookup itself, so the result above (lensfun commit 43f9e001, the one #3073 pins) is what this file would get. #2644 by @ericspooner bundles Canon EF/RF profiles instead. Both are tracked in #329; #3032 (250D) and #2192 are similar reports. Separately, the camera-colour fit pairs the uncorrected raw with the corrected JPEG for this file (held-out RMS 0.078, against 0.016–0.030 for the other samples). #2675 by @r3d42-git aligns those pairs through the lens profile for other raw formats but leaves CR3 as it is, so CR3 could join it later.
From the user's side this is #329, so it can close once lens profiles reach Canon raws.
r3d42-git commentedon Oct 27, 2026
Thanks for the investigation and for connecting this with #2675. CR3 was deliberately excluded to preserve its existing orientation and framing alignment. Extending the profile-based correspondence alignment to CR3 looks worth investigating, provided it is validated against that existing path. The R100 case and the public RAW/C-RAW samples would be useful starting points.
Update: I’ve opened #3138 to extend the guarded lens-profile correspondence alignment to CR3. Tested with 22 public CR3 files, including R100 RAW/C-RAW and R6 Mark II variants: the R100 alignment improves, while the other samples retain their existing results. This complements the lens-profile availability work in #3073. The separate CI prerequisite is #3136.