-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After upgrade from 4.8 to 5.0 RAW files from Fujifilm GFX 100 / 100S cameras are all purple after import. #18073
Comments
@kmilos did you encounter this before? white points wrong? bayer pattern? RGGB / BGGR ? |
I guess this could be related and a side effect of changing the rawspeed crop to handle #17861 Sadly, not much testing was done as RPU is down. I thought whatever crop rawspeed supplies, the CFA pattern is automatically adjusted in demosaic... |
Right. So the initial value could be bad or it's the black points. |
Unfortunately I won't be able to for a while but these need to be checked since after the change the offsets are probably no longer zero: (Although even offsets shouldn't really affect Bayer CFA...) |
No chance to get me into rawspeed code and indeed that should not be the problem. Also it seems it's the same issue :-) |
I got the same problem, using MacOS Sequoia 15.1.1 |
@kmilos I checked brute-force using libraw for all raf files. works for this camera. For some reason completely failing on other raf files ... |
I'm experiencing the same issue with RAF images which loaded in a previous (4.6.1) version. |
@ralfbrown @kmilos i tried to use libraw on all RAF images and was somewhat surprised. The image in question was good, others had a failure like the one mentioned in this issue. We also changed the loader mechanism, any bell ringing? |
The only thing the changed loader mechanism might be doing is switching whether rawspeed or LibRaw gets used for an image. There have been cases where different firmware versions result in different data being recorded, and perhaps rawspeed and LibRaw disagree on which way to interprest things.... I just checked, and 5.0.0 and master both show purple for GFX 100 and GFX 100 II samples from RPU (my local copy) and are fine for the other GFX models. I clearly didn't see that when making the camera styles back in June or so. BTW, 5.0.0 is using rawspeed as loader for both purple images. Interestingly, when I tried swapping the CFA colors for the GFX 100 in cameras.xml (because it crops an odd number of sensels on top and bottom), darktable told me the file was corrupt as a result of rawspeed throwing an "Unexpected Bayer phase" exception.... |
Yes, I found that too. |
Looks like this was a dormant bug that's now exposed by this new odd crop only... Likely there is some double shifting/readjustment of the CFA pattern (perhaps the contract is not clear, and happens once in RawSpeed, and another in dt). Unfortunately, I'm still days, if not weeks away from a debugging session... P.S. |
@jenshannoschwalm It's additionally confusing as the (manual) odd crop for 5D Mark Ii should be working (I think you did a commit to address this in HDR merge, but demosaic was already working ok for that odd crop on single frames...). |
@kmilos @LebedevRI i don't know the rawspeed internals and it's working at all, but i can confirm:
|
Ah, it looks like the adjusted CFA pattern gets reset here after the crop (in Obviously, there is no effect if the crop is even/zero. Edit: please test darktable-org/rawspeed#770 |
I can confirm that darktable-org/rawspeed#770 fixes it. Thanks @kmilos ! |
Good to me too :-) Checked for (new) failures on all raf sample files i have ... |
f.y.i.: same problem for Fuji GFX 100 ii. I was not able to try the patch yet as I am using binaries usually. |
|
@kmilos did you try that and found it working? For me it didn't and I also think it should not as we always can freely change the raw croppers and the pattern is changed accordingly. |
Apologies, I guess you're right, it would indeed come in too late, i.e. after RawSpeed has already scrambled the pattern... So it must be done in |
in dt 4.8 I found I downgraded dt on my working horse from 5.0 to 4.8 using a back up, |
Already mentioned earlier: #18073 (comment) (and highlighted in the 5.0.0 release notes) |
@kmilos still hoping for your proper rawspeed fix getting merged for 5.0.1 |
Sure, we just need a ping from @TurboGit for the freeze date (hoping to potentially catch up w/ a couple of more camera models until then)... |
On 1/16/25 06:12, sengebusch wrote:
in dt 4.8 I found |<Crop x="0" y="0" width="-146" height="-6"/>| in |
cameras.xml| for GFX 100xx cameras.
I can confirm that adding that line to cameras.xml, for the GFX 100S, at
least, produces what appears to my eye to be a properly rendered image.
Perhaps it is as simple as that?
Regards.
spl
|
That is just a temporary workaround for GFX 100 series users shooting uncropped MF only and wishing to continue editing in 5.0.0. This is not an ideal long-term fix as it doesn't work properly if one switches to a FF crop mode on GFX bodies (as mentioned above). A proper fix not requiring any intervention should hopefully land in the 5.0.1 patch release. |
@kmilos : For bug-fix release there is no freeze date. We push safe bug-fix in darktable 5.0.x branch until we find the status ok for publishing it. So if you have a fix for 5.0.x do it now. |
I used F.y.i.: |
I'd rather do a single PR for the rawspeed submodule update, thanks. |
RPU is back up, btw. |
Implemented in #18242 |
Would be nice if this kind of continuously updated file was decoupled from the main app, as to not require waiting for a full stable update, using a snapshot, or setting up a temporary fix to get around the issue |
I feel like decoupling the file would be extremely confusing, and the application already sows enough confusion as it is.
…On February 9, 2025 9:58:42 AM PST, CritLoren ***@***.***> wrote:
Would be nice if this kind of continuously updated file was decoupled from the main app, as to not require waiting for a full stable update, using a snapshot, or setting up a temporary fix to get around the issue
--
Reply to this email directly or view it on GitHub:
#18073 (comment)
You are receiving this because you commented.
Message ID: ***@***.***>
|
The
|
Describe the bug
I've been using previous release 4.8 to process RAF files from Fujifilm GFX and it worked as expected.
After fresh installation of darktable 5.0 (Windows 10 PC) and import of GFX files images show up normal in the lighttable library, but after import to darkroom for editing they turn heavy purple with all default settings. Applying color calibration or playing with colorspace does not make it any workable. Turning OpenCL on or off does not change the result. I've tried files from the two cameras - GFX 100 and GFX 100S, and results are identical.
Same issue was reported here as well:
https://discuss.pixls.us/t/purple-images-with-fuji-gfx-in-dt-5-0/47164
Steps to reproduce
Expected behavior
Should open with proper colors, as the old 4.8 does.
Logfile | Screenshot | Screencast
No response
Commit
No response
Where did you obtain darktable from?
downloaded from www.darktable.org
darktable version
5.0.0
What OS are you using?
Windows
What is the version of your OS?
Windows 10 1709 (16299.125)
Describe your system?
Intel Core i7-7980XE, 96GB memory, EVGA GeForce 1080 Ti
Are you using OpenCL GPU in darktable?
Yes
If yes, what is the GPU card and driver?
No response
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
No response
The text was updated successfully, but these errors were encountered: