darktable-org / lua-scripts

148 stars 108 forks source link

Add contrib/fujifilm_auto_settings script #476

Open charludo opened 1 month ago

charludo commented 1 month ago

This PR adds a script for autmatically applying fujifilm film emulations during import, based on the exif data contained within fuji raw images.

Note that I am not the author of this script. The actual author talks about the script in this post, where they also link the required LUTs and styles.

I'm opening this PR because I believe this script can be a very useful addition for many (fuji-) users. I don't know why the original author did not add the script to this collection, but the license appears to permit adding it.

bastibe commented 1 month ago

Author of the script here.

I'm afraid the script is rather useless without the accompanying styles. All the script does is apply one or more styles based on the exif metadata. But without the styles, it does nothing at all. Is that even useful?

Also, the script version in this pull request is outdated. Please use the more recent version from https://github.com/bastibe/Fujifilm-Auto-Settings-for-Darktable.

I have better versions of the styles in this repo: https://github.com/bastibe/Darktable-Film-Simulation-Panel

I'd be fine with shipping both the styles and the script in darktable, if that's desirable.

charludo commented 1 month ago

Author of the script here.

I'm afraid the script is rather useless without the accompanying styles. All the script does is apply one or more styles based on the exif metadata. But without the styles, it does nothing at all. Is that even useful?

Oh wow, thank you for jumping in on this!!

I would not call the script useless. Sure, it needs some additional styles, but "just" having the styles still leaves you with manual work which the script nicely automates away.

Also, the script version in this pull request is outdated. Please use the more recent version from https://github.com/bastibe/Fujifilm-Auto-Settings-for-Darktable.

I have better versions of the styles in this repo: https://github.com/bastibe/Darktable-Film-Simulation-Panel

I do not know why I didn't check for a repo containing the script 🤦🏼‍♀️ Thanks for letting me know.

I'd be fine with shipping both the styles and the script in darktable, if that's desirable.

Maybe the maintainers of this repo can jump in on this? For the time being I'll add the newer version of your script, but since you do have a repo with detailed instructions, I guess this PR isn't really that necessary any longer 😅

I have better versions of the styles in this repo: https://github.com/bastibe/Darktable-Film-Simulation-Panel

Btw, do these styles no longer need LUTs...?

bastibe commented 1 month ago

Btw, do these styles no longer need LUTs...?

Indeed they do not. Good observation.

I found the LUTs unnecessarily restrictive to a particular workflow, and really hard to get right for saturated colors. The LUTs were generated from a large number of real-world photos I took, but saturated colors are just rare in nature, so they were ill-covered by the training set.

The new styles instead use the lookup-table module, with corrections created by dt-chart from color checker images. This has the advantage of separating lightness from color, and seems in general more robust for saturated colors. It also plays nicer with sigmoid, which was otherwise a bit of a problem.

charludo commented 1 month ago

Btw, do these styles no longer need LUTs...?

Indeed they do not. Good observation.

I found the LUTs unnecessarily restrictive to a particular workflow, and really hard to get right for saturated colors. The LUTs were generated from a large number of real-world photos I took, but saturated colors are just rare in nature, so they were ill-covered by the training set.

The new styles instead use the lookup-table module, with corrections created by dt-chart from color checker images. This has the advantage of separating lightness from color, and seems in general more robust for saturated colors. It also plays nicer with sigmoid, which was otherwise a bit of a problem.

Nice, thank you for the explanation! I've been playing around with both the versions/plugins you've created today, and absolutely love them. The fuji emulations were the reason I switched from DT to C1 years ago, and seeing that the same thing is available for DT now will allow me to switch back, which is awesome.

SO again: thank you for the work you've put into these, the results are phenomenal.

bastibe commented 4 weeks ago

Gee, thank you for your kind words!

I suppose we should add entries for the newer film simulations, Classic Neg, Nostalgic Neg, Eterna Bleach Bypass, and Reala Ace. We'd need to look up how they are represented in the exif data.

I can create new styles for the former three as well, and for Reala Ace as soon as they release the firmware update for the X-T5 that adds it. Or just use a Capture One or Lightroom render in the meantime.