Skip to content

Fujifilm RAW profiles #380

Open
Open

Description

@karelfrydrych

Hi!

First of all, great work on LightCraft. I'm a Fujifilm X-T5 / X100VI user and I'm really interested in using LightCraft as a Lightroom alternative.

I noticed that LightCraft currently has its own profiles (Color, Neutral, Vivid, Landscape, Portrait, Monochrome), but there doesn't seem to be support for Fujifilm-specific camera profiles / film simulations.

Are there plans to support Fujifilm camera profiles, for example:

Classic Chrome

Classic Negative

Nostalgic Negative

Acros

Provia

Velvia

Astia

Eterna

Reala Ace

I'm particularly interested in whether Fujifilm camera-specific colour calibration/profiles are part of the planned camera colour calibration work.

Also, would LightCraft eventually support importing external ICC/DCP camera profiles, or is the intention to build the camera profiles internally?

Thanks!

Activity

  1. bflatastic commented on Oct 8, 2026

    @bflatastic
    Member

    Thanks for the kind words and the clear question, @karelfrydrych. Here's where things stand for Fujifilm.

    What RAF files get today. Fujifilm RAFs have no measured camera colour calibration yet. Each RAF gets a file-local starting look instead: LightCraft fits a colour matrix, a hue/saturation table and tone/chroma curves to that file's own embedded camera JPEG (docs/camera-preview-colour.md). That JPEG was rendered with whatever film simulation the camera was set to. So a shot taken in Classic Chrome or Acros opens looking close to the camera's rendering of it, while every pixel still comes from the raw data. What you can't do yet is pick a different film simulation afterwards.

    Film simulation profiles. "Camera Matching" profiles are on the parity list (LR-PROF-CAMERA, not started). The project is clean-room: we can't copy Adobe's camera-matching profiles or Fujifilm's processing. Any film-simulation looks would have to be our own measurements, for example fitted from pairs of raws and in-camera JPEGs of the same scenes, and named so they don't claim to be Fujifilm's. Your question about whether this belongs with the camera colour calibration work is the right one: per-camera calibration comes first (it's the top gap in the roadmap), and looks build on it.

    External profiles. Profile browser → Import accepts .cube 3D LUTs (files, folders or zips) as creative profiles with an Amount slider. Adobe's DCP format is deliberately not supported, and input ICC profiles aren't supported either. So the plan is to build camera calibration in-house rather than load external camera profiles.

    If you can share a few RAFs, ideally the same scene shot with different film simulations and under CC0 or a similar licence, they'd be very useful test material for both. You'd be welcome in the community Discord too: https://discord.gg/artcraft


    Generated by Claude Code

  2. coromi3y commented on Oct 9, 2026

    @coromi3y
    1. If you can share a few RAFs, ideally the same scene shot with different film simulations and under CC0 or a similar licence, they'd be very useful test material for both. You'd be welcome in the community Discord too: https://discord.gg/artcraft

    I can provide some images. The Github upload keeps failing but I have uploaded them here in a zip file https://www.mediafire.com/file/vil71el98q5q72f/fuji-film-simulation.zip/file
    The file names correspond to the film simulation used.

  3. JackalCOB commented on Oct 14, 2026

    @JackalCOB
    Contributor

    Measured film simulation looks for the X-T4: a proposal, with evidence

    Thanks for the reply above, @bflatastic. You said film simulation looks would have to be our own
    measurements, so I have measured how the X-T4 renders each of its nine colour film simulations and
    fitted a model per look. Before writing any code I would like to ask how you would want this in
    LightCraft. Every figure below is measured, and none of it is Fujifilm's data or processing.

    How it was measured

    The X-T4 has a USB raw conversion mode: given a raw and a film simulation, the camera renders it to a
    JPEG. A script drives that mode, so the camera itself is the measuring instrument.

    • Training data is synthetic. Copies of the CC0 raw.pixls.us X-T4 file 3913 have their sensor data
      replaced with patches of known colour, using the uncompressed layout raf.rs documents. Six training
      charts hold a regular grid of 3,906 colours across 18 exposure levels, each placed twice. The camera
      converted every chart in all nine looks, in Adobe RGB. Profiles are fitted from these charts alone,
      so no private photograph shapes them
    • The camera's own corrections are measured and removed. It corrects distortion and vignetting
      when it converts. Both were measured on chart grids and compensated, so patches read correctly to
      the corners
    • Validation is held out. Six more charts with different colours and layouts, including charts of
      only dark or only bright colours. The three public X-T4 raws. And my own photos: a hand-picked set,
      and 500 chosen by script from about 14,000 for colour, lighting, lens, and ISO coverage, of which 489
      have enough flat area to judge. Those photos stay private, so only aggregate figures are given here

    On photographs, colour is compared over flat areas: the average colour of 8 × 8-pixel blocks on a
    780 × 520 frame, with clipped highlights left out, against the camera's conversion of the same raw.
    Through this measure the camera's conversion and its own original JPEG differ by a median of
    ΔE2000 0.14.

    Results

    The model per look is a smooth 3D lookup from white-balanced camera RGB. ΔE2000 against the camera,
    and today's LightCraft for comparison. LightCraft renders the look a photo was shot in, so its figure
    is how far today's render sits from each look.

    Look Held-out charts, mean Photos (489), median LightCraft today (489), median Gap to the nearest other look (54 hand-picked photos)
    PROVIA 0.45 0.52 2.67 1.23
    Velvia 0.43 0.50 4.28 2.15
    ASTIA 0.48 0.51 3.18 1.28
    PRO Neg. Hi 0.42 0.50 3.59 1.44
    PRO Neg. Std 0.43 0.51 3.25 1.23
    Classic Chrome 0.40 0.45 3.43 1.44
    ETERNA 0.44 0.54 3.60 1.71
    Classic Neg. 0.43 0.45 5.63 3.10
    ETERNA Bleach Bypass 0.44 0.49 6.47 3.33

    Every median is within half the gap to the nearest other look, and on the 489 photos each model is
    nearer the right look than that neighbour on 97 to 100% of those where the camera renders the two
    differently. The public raws score 0.26 to 0.42, and the hand-picked photos 0.42 to 0.45.

    What it means for the profile format

    I also fitted LightCraft's current profile form per look from the same charts, reimplemented from
    camera_preview.rs: a matrix, a luminance-restoring hue and saturation table, a tone curve on
    luminance, and a chroma curve. It cannot follow the looks. On the photos it reaches medians of 1.1 to 3.1. Allowing the table to scale value, as
    a DNG look table does, and adding per-channel output curves brings that to 0.8 to 2.0, but with a long
    tail (95th percentiles up to 4.5). It fails for two reasons:

    • Lightness depends on colour. The looks render saturated colours lighter or darker than their
      luminance alone predicts, which a luminance-restoring table cannot express
    • Classic Neg. tints its greys, cooler in the shadows and warmer in the highlights, which a
      neutral-preserving table cannot represent

    So a per-look profile probably has to be a 3D lookup. The one measured here is 17 × 29 × 29 nodes on
    the camera colour in CIELAB, through the X-T4 forward matrix already in spectral_table.rs. That is
    about 170 KB per look.

    Found along the way

    These hold whatever happens to the looks:

    1. DR200 needs a stop before any fixed profile. The X-T4 shoots DR200 a stop under and brightens
      it back when it renders, whatever dynamic range the conversion asks for. Unscaled, DR200 photos
      came out a stop dark through the lookup, a median of 9.3 ΔE2000 from the camera. Scaled by the raw's
      dynamic range over 100, they match as well as DR100 photos. The per-file fit absorbs this
      today, so it only shows once a profile is fixed. 62% of my library is DR200
    2. Fujifilm's lens tables read best at the plain sensor radius. Read with ρ equal to the sensor
      radius, the 3913 file's distortion table (0xf00b) predicts the camera's own geometry to within
      1.2 pixels at 3,120 × 2,080, out to 0.92 of the half diagonal, and its vignetting table (0xf010) its
      corner gain to within 1.2%, out to 0.9. With ρ = knot_last · r, as docs/fuji-lens-corrections.md adopts, the gain
      is up to 6.5% off. This is one lens, so it is worth checking against that document's validation set

    A possible design

    Questions

    1. Are measured per-look profiles wanted, and in which form: a native lookup in the camera profile, a
      scene-referred .cube, or something else?

    2. Fujifilm's film simulation names are trademarks, so naming is your call. Some options, from least
      to most reference to Fujifilm:

      • No reference: plain names such as "Standard", "Vivid", "Soft", or "Muted". Fujifilm pairs
        only four of the nine modes with a plain word, so the rest would need names chosen for them
      • A reference in brackets: "Vivid (Velvia)", listed under a group such as "X-T4 looks, measured",
        with a description such as "Measured from the X-T4's Velvia film simulation. Not made or endorsed
        by Fujifilm"
      • A qualified mode name: "Velvia-style", for a profile browser that shows a single line

      Which would you accept, if any?

    3. Is this method acceptable provenance for shipped profile data: charts built from a CC0 raw,
      rendered by the camera, with the fitted lookup as our own measurement?

    4. Should the chart generator and the converter live upstream as a tool, so owners of other bodies can
      measure theirs?

    I am happy to share more of the figures or the tools, and to build the code to whichever design suits
    you best.


    How it was made: the method and tools were written with Claude Code. Raws were decoded with
    LightCraft's own decoder through the rawdump example, which matches the corpus sums for the public
    X-T4 raws, and the uncompressed charts, also read directly, agree with it sample for sample. No raw
    decoder's source was consulted. The USB conversion protocol follows the facts documented by
    FilmKit (MIT). My photos are not shared, and the figures above are aggregates.

    Edited 21 October 2026: two figures corrected. The current profile form's medians are 1.1 to 3.1, not 3.0, and the
    lens-table figures are now the ones recomputed from the stored chart measurements (1.2 pixels and 1.2%, where this said
    about 3 pixels and 1.1%). The lens-table reading is now #2444, and the looks #2445.

  4. karelfrydrych commented on Oct 21, 2026

    @karelfrydrych
    Author
    1. Thanks for the kind words and the clear question, @karelfrydrych. Here's where things stand for Fujifilm.
      What RAF files get today. Fujifilm RAFs have no measured camera colour calibration yet. Each RAF gets a file-local starting look instead: LightCraft fits a colour matrix, a hue/saturation table and tone/chroma curves to that file's own embedded camera JPEG (docs/camera-preview-colour.md). That JPEG was rendered with whatever film simulation the camera was set to. So a shot taken in Classic Chrome or Acros opens looking close to the camera's rendering of it, while every pixel still comes from the raw data. What you can't do yet is pick a different film simulation afterwards.
      Film simulation profiles. "Camera Matching" profiles are on the parity list (LR-PROF-CAMERA, not started). The project is clean-room: we can't copy Adobe's camera-matching profiles or Fujifilm's processing. Any film-simulation looks would have to be our own measurements, for example fitted from pairs of raws and in-camera JPEGs of the same scenes, and named so they don't claim to be Fujifilm's. Your question about whether this belongs with the camera colour calibration work is the right one: per-camera calibration comes first (it's the top gap in the roadmap), and looks build on it.
      External profiles. Profile browser → Import accepts .cube 3D LUTs (files, folders or zips) as creative profiles with an Amount slider. Adobe's DCP format is deliberately not supported, and input ICC profiles aren't supported either. So the plan is to build camera calibration in-house rather than load external camera profiles.
      If you can share a few RAFs, ideally the same scene shot with different film simulations and under CC0 or a similar licence, they'd be very useful test material for both. You'd be welcome in the community Discord too: https://discord.gg/artcraft

      Generated by Claude Code

    RAF+JPEG straight from camera (latest generation fuji sensor Xtrans V) files are named by film simulation - https://file.kiwi/7a516534#o4p1K6GPl-Kr1ucF2tyEPw

  5. added a commit that references this issue on Oct 21, 2026
  6. Lorenzoeffe commented on Oct 22, 2026

    @Lorenzoeffe

    Fujifilm X-H1 user here (X-Trans CMOS III). A few things that may help:

    1. Data for another sensor generation. The X-H1 is supported by Fujifilm X RAW STUDIO, so the in-camera conversion method used for the X-T4 measurements should work on it too. I can shoot the scenes and run the conversions if you share the procedure or script.
    2. The starting look. Once the film simulation is read from the maker note (Fujifilm recipe inspector: show MakerNote film settings #1203 / Show Fujifilm film-simulation settings from the MakerNote #1209), an "As shot" option could pick the measured look matching each frame's FilmMode, with a fixed per-camera look as the alternative, so a whole shoot can start from the same look.
    3. Bodies without measured looks. Grouping lightcraft-cli calibrate pairs by FilmMode could give per-simulation fits from users' own RAW+JPEG pairs.

    The DR200 finding here matches the DR baseline I've proposed in #2616.

  7. JackalCOB commented on Oct 22, 2026

    @JackalCOB
    Contributor

    Thanks, @Lorenzoeffe. An update first: the lens-table reading (#2444) was merged on 22 October, and the nine X-T4
    looks (#2445) are rebased onto main and waiting for review.

    X-H1 data. Yes please. A second sensor generation would show whether the method carries over. It needs two
    things: the camera's own USB raw conversion (what X RAW STUDIO uses), and an uncompressed X-H1 raw to build the
    charts from, ideally CC0, since each chart is a copy of a real raw with its sensor data replaced. The tools are now at
    https://github.com/JackalCOB/fuji-look-charts under the MIT licence, which matches FilmKit's, whose protocol facts the
    conversion driver follows. The README walks through the procedure and lists what is specific to the X-T4: the active
    area, white level, forward matrix and film simulation codes. The geometry and corner brightening have to be measured
    again for each body and lens.

    "As shot". Agreed, and #2445 leaves it out on purpose. Once #1209 reads the film simulation, picking the matching
    look per frame is a small mapping, with two limits. It covers only the colour looks of a camera that has them, and
    the looks were measured with the rest of the recipe neutral (grain and Color Chrome off, highlight, shadow, colour and
    sharpness at 0), so a frame shot with those changed would still differ from its JPEG.

    Per-simulation calibrate fits. That would give every body something. One caution from the X-T4 measurements:
    the profile form calibrate produces (a matrix, a hue/saturation table and tone and chroma curves), fitted per look
    to the same charts, reached medians of 1.1 to 3.1 ΔE2000 on photos, against about 0.5 for the lookup. So I'd expect
    fits grouped by FilmMode to be limited by the form more than by the data.

    #2616. One thing to coordinate: #2445 applies the dynamic range inside the look only, as a gain of DR/100 read from
    0x140b (or 0x1403 when it was set by hand), which matched the camera's own conversion on 570 X-T4 raws. The
    starting look is unchanged. If #2616 adds a baseline at decode for every Fujifilm raw, the look's own gain should go,
    or DR200 frames with a look would be brightened twice. I'm happy to change #2445 whichever way the maintainers prefer.

    @karelfrydrych, @coromi3y: thanks for the samples. This method can't build looks from RAF and JPEG pairs alone, since
    it needs the body itself to convert the charts, but they made a good check of #2444's reading on a body other than the
    X-T4. Both sets are X100VI raws with the fixed 23 mm lens, 28 pairs in all, 14 at f/2 and 14 at f/4.5:

    • Their tables have the X-T4's layout. All 56 have nine knots, the eighth at the corner, and the ninth repeats the
      eighth's value
    • The X100VI's distortion tables are all zero, so framing doesn't change (correlation with the camera's JPEG 0.934
      either way)
    • For vignetting, LightCraft's corners less its centre, against each camera JPEG's, went from a median of +0.79 to
      +0.67 L* at f/4.5 and from +3.92 to +3.30 at f/2, closer in all 28

    So the plain reading is the better one on the X100VI too. At f/2, though, LightCraft still brightens the corners about
    3.3 L* more than the camera's JPEG does, against 0.7 at f/4.5, which looks like the camera leaving part of its
    wide-aperture falloff in, as docs/fuji-lens-corrections.md already notes for seven combinations on other bodies. The
    knot reading doesn't account for it. Only these aggregates are shared, and the JPEGs being in fourteen film
    simulations makes the corner figures a guide rather than a measure, though the direction held in every one. I can add
    them to the doc in a small follow-up if that's useful.

  8. radialmonster commented on Nov 1, 2026

    @radialmonster
    Contributor

    @Lorenzoeffe shot a ColorChecker Passport (2019) on the X-H1 for this: one RAF + camera JPEG per film simulation, in sunlight at 5600 K, with every other setting at 0. Here are the measurements on all 50 patches. Only numbers from the files are shown; the camera JPEGs are Adobe RGB and are read that way. The exposure side of the set is in #2616.

    How each film simulation differs from PROVIA in the camera's own JPEG (colour patches, mean ΔE76, chroma ratio, grey shift dark to light):

    • Velvia: ΔE 9.7, chroma ×1.16, greys −2 to −3 L*
    • Astia: ΔE 5.0, chroma ×1.00, greys about 0
    • Classic Chrome: ΔE 11.3, chroma ×0.79, greys −1, top grey +2
    • PRO Neg. Hi: ΔE 7.7, chroma ×0.87, greys −2 to −5
    • PRO Neg. Std: ΔE 11.5, chroma ×0.78, hues −3.8° (median), dark greys +4 L*
    • Eterna: ΔE 15.4, chroma ×0.70, dark greys +6 to +8 L*

    Hue shifts are small (median under 4°) in all of them, so most of what tells the looks apart is chroma and the tone curve. For the X-T4 looks in #2445 this gives a second sensor generation to compare against: the same differences measured from the camera, not from a model.

    B&W modes. Each B&W mode's grey is close to a fixed mix of linear R, G and B (weights on the PROVIA frame's linear Adobe RGB, fitted to each B&W frame's patch greys):

    • Acros: 0.26 / 0.60 / 0.13; Monochrome: 0.23 / 0.62 / 0.15; Sepia: 0.23 / 0.63 / 0.15
    • Yellow filter: Acros 0.46 / 0.49 / 0.05, Monochrome 0.43 / 0.49 / 0.07
    • Red filter: Acros 0.67 / 0.36 / −0.03, Monochrome 0.65 / 0.36 / −0.01
    • Green filter: Acros 0.12 / 0.71 / 0.17, Monochrome 0.08 / 0.75 / 0.17

    These mixes match the camera's patches to 0.13–0.21 EV RMS, against 0.26–0.62 EV for plain luminance on the filter modes. So a B&W option that matches the camera can be a channel mix per mode and filter, plus the mode's tone curve. A raw shot in a B&W mode still opens in colour today (#2307, #577), and these mixes don't change that.

    How close LightCraft's default gets (the per-file look fitted to each frame's own JPEG, mean ΔE76 on all patches): Eterna 1.9, PRO Neg. Std 2.1, Classic Chrome 3.6, PRO Neg. Hi 4.2, PROVIA 4.8, Astia 5.2, Velvia 7.0. The largest errors in every frame are the two strongest yellows (the classic and creative yellow patches, C* 80–83 in the JPEG), which come out at 0.57–0.72 of the camera's chroma. This looks like a chart limit of the per-file fit, not a yellow problem in general: the fit's hue/saturation table is shrunk toward identity where a photo has few samples, and two small patches are very few, so that's the most likely cause. On real scenes across 56 CC0 raw.pixls.us files from seven makers, LightCraft's yellow matches the camera JPEG: a median chroma ratio of 1.00, and 0.97 on pixels above C* 65. A camera profile pooled from many X-H1 photos would carry those colours to every frame, as asked for in #2616.

  9. FredApps commented on Nov 9, 2026

    @FredApps
    Contributor

    Related #3753 reports missing Astia/Provia profile references in XMP when importing RAFs from Fuji X100, X100S and X100F, and offers sample files. Please retain the XMP profile-reference case alongside the broader camera-profile request.

  10. cyr06 commented on Nov 12, 2026

    @cyr06

    Thank you for your interest. I don't understand if I can help you sharing file or information on x100 models. Sorry for my english (Google translate is not better in this case :)

  11. lzjtugjc commented on Nov 29, 2026

    @lzjtugjc
    Contributor

    X-T3 owner: will #2445's looks cover the X-T3, or does this body need its own fit? (samples I can shoot)

    Adding demand and an offer of data, since this thread has been collecting per-body measurements.

    Where I am

    • Fujifilm X-T3 (X-Trans 4 / X-Processor 4, the same generation as the X-T4 that LR-PROF-CAMERA: measured looks for the X-T4's film simulations #2445 fits), XF16-80mm F4, Sigma 30mm F1.4, 56mm F1.4.
    • Library: 773 RAF + 102 JPEG (46 GB), all X-T3, imported in place from a NAS; Linux, LightCraft 0.22.0.
    • What 0.22.0 does today: the MakerNote recipe is visible (Film simulation = Classic Chrome, DR400, WB shift, Grain, Highlight/Shadow, Color Chrome, Sharpness/Color/NR/Clarity), but nothing renders a raw with another of the camera's simulations — the profile list is the Basic set plus the Film/Cinematic looks. So the simulation the frame was shot with is known and then ignored.

    Questions

    1. LR-PROF-CAMERA: measured looks for the X-T4's film simulations #2445 fits nine measured looks for the X-T4 and lists them as look:x-t4/…. X-T3 and X-T4 share the sensor and processor generation, so: do the X-T4 looks render an X-T3 raw the way the camera would, within your tolerance — i.e. can they be offered for X-T3 raws as a shared "X-Processor 4" look set — or does each body need its own fit?
    2. If the X-T3 needs its own: what exactly should I shoot, and does the capture method matter? Specifically, is FILM SIMULATION BKT (one press, the same scene in every simulation) acceptable, or do you need the ColorChecker set the way @radialmonster did it for the X-H1 in this thread (one uncompressed RAF, converted in camera / X RAW STUDIO to each simulation, every other setting at 0, sunlight at 5600 K)?
    3. I will check which simulations my body actually offers rather than assume it matches the X-T4's nine — if X-T3 has a shorter list, how do you want a body with fewer looks handled?

    What I can deliver (CC0)

    If the X-T4 work generalises, one X-Processor 4 look set would cover X-T3 / X-T30 / X-T30 II / X-S10 / X-E4 / X-Pro3 users — which seems worth the extra validation.

  12. Gradivis commented on Dec 3, 2026

    @Gradivis

    +1 from a Fujifilm X-T2 shooter. Proper starting profiles for RAF files would save me building my own looks for every shoot. I'd use them alongside my Canon files, so anything consistent across both makes would be ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions