-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add support for extracting, storing, and filtering on Fujifilm Film Modes #19622
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
base: master
Are you sure you want to change the base?
Add support for extracting, storing, and filtering on Fujifilm Film Modes #19622
Conversation
|
I should note that this commit contains more code layout changes than I'd have liked, but clang-format forced me to :|. I am happy to revert them if you prefer the if-branches which it folded together to be unfolded. |
…odes Fujifilm cameras of the X and GF series have support for so-called Film Simulation Modes. These are said to mimic the look of certain types of analogue film. I have wished for the ability to filter on film sim mode for quite a while. In addition, I would like to, in the future, add specific dtstyles for the various modes and allow to apply them by default via apply_camera_style. This commits provides the foundation for that. It adds the ability to filter by and view the film mode in the UI. It also exports the film mode to Lua, so that apply_camera_style could in the future use that.
49aee0c to
7979be7
Compare
|
Advice on how to deal with already imported files welcome. Is there a thing to trigger a re-read of EXIF data after support for a new tag has been added? |
|
In the lighttable view there is a metadata tab under "actions on selection" (i just roughly translated this so it might be named slightly different) there you can click "update exif" |
|
@TurboGit @zisoft @jenshannoschwalm how do we feel about adding camera specific metadata to the image table? Current Lua scripts use exiftool to extract the metadata. @horazont have a look at https://github.com/bastibe/Darktable-Film-Simulation-Panel and https://github.com/bastibe/Fujifilm-Auto-Settings-for-Darktable |
|
@horazont: Have you tried adding these tags to the metadata editor? (metadata module --> preferences) Collection module:
|
|
@zisoft looks like I need to extend the Lua API a little bit so that it's possible to take advantage of this and rely less on exiftool |
|
@zisoft Wow, I was simply unaware of that feature. I tried it just now on 5.2 and on master (without my patch), and while FilmMode and Color do show up in the panels, neither "refresh EXIF" nor freshly importing an image actually populates those fields (I only get "not defined" in the filter options and "-" in the "image information" panel). That's probably a bug? |
|
@horazont can you provide a sample image? |
|
@zisoft The sample images from raw.pixls.us for X-T4 or X-E5 should do nicely: X-T4: https://raw.pixls.us/getfile.php/3913/nice/Fujifilm%20-%20X-T4%20-%2014bit%2014bit%20uncompressed%20(3:2).RAF (the exifdata on raw.pixls.us shows that Exif.Fujifilm.FilmMode is in fact set for both of them) |
for what it's worth, I would've thought that the Film Mode field is also useful for other camera brands, even though they might call this feature differently. At least Ricoh seems to have a similar concept (which I learnt by following your links, which I had not been aware of yet, so thanks for that!) and I seem to recall that Canon too has some kind of picture styles (but it's been a while I had a Canon in hand, so I might be misremembering). |
I think that some Olys and Leicas have that too. |
|
@zisoft Did you have a chance to play with the sample images? I dug around a bit in the code. As far as I can tell, the functions which actually set those metadata items and their callers from within exif.cc are:
There's also direct inserts to the data.meta_data table from image.c, but those are only for duplication workflows AFAICT. From that I conclude that the custom metadata feature only works for Xmp metadata and not for EXIF metadata. Is this plausible or am I missing something here? As for how I would like to move forward: I don't have strong feelings one way or the other. I can either dig into trying to fix the issue that custom metadata is not imported from EXIF or I can polish this PR here in whichever way necessary if there's consensus that keeping the Given that there are multiple vendors having a similar feature, I could see some benefit to having a unified tag for this instead of a custom metadata field users have to enable. So I have a slight tendency toward that. |
|
Because I might actually want to have this custom metadata feature anyway, I filed #19656 with an |



Fujifilm cameras of the X and GF series have support for so-called
Film Simulation Modes. These are said to mimic the look of certain types
of analogue film.
I have wished for the ability to filter on film sim mode for quite a
while. In addition, I would like to, in the future, add specific
dtstyles for the various modes and allow to apply them by default via
apply_camera_style.
This commits provides the foundation for that. It adds the ability to
filter by and view the film mode in the UI. It also exports the film
mode to Lua, so that apply_camera_style could in the future use that.