Hello,
I would like to have support for GainMaps embedded in DNG files, which are
required to fully support raw photos from certain smartphone cameras and
other devices. The GainMap is like a vignetting correction that's specific
to each color channel. For a camera that needs the correction, not applying
it is sort of like having the wrong color profile except that the edges of
the image are affected more than the center.

Without this support, the only way I have been able to use darktable with
raw photos from my Pixel 4a is by using an external utility to apply the
GainMap to the dng before editing:
https://github.com/paolodepetrillo/raw2dng/blob/dngpreprocess/dngpreprocess/dngpreprocess.cpp

I have a working implementation that reads the GainMaps from the DNG EXIF
tags and applies them from within the 'raw black / white point'
(rawprepare) module:
https://github.com/darktable-org/darktable/pull/10289
Not sure if there's enough time to get this into 3.8 - it would need
review, documentation, and probably some integration tests to make sure
it's producing output consistent with the Adobe DNG SDK.

Another possibility is to handle these files similarly to lossy compressed
DNGs, with black point, white point, rescaling to 0.0-1.0, and the GainMaps
all handled within rawspeed, with nothing remaining for the rawprepare
module to do. A while ago I had experimented with this and made this proof
of concept:
https://github.com/paolodepetrillo/rawspeed/tree/dng-gain-map

-Paolo

On Wed, Nov 3, 2021 at 8:44 AM Pascal Obry <pas...@obry.net> wrote:

>
> Hi,
>
> We are approaching to the next release. The next step is feature freeze
> and it will be Mid-November as usual.
>
> As a reminder you can find on the following Wiki page the date for each
> important release steps:
>
> https://github.com/darktable-org/darktable/wiki/Handling-a-release
>
> So if you have any new feature that you'd like in 3.8 there is still a
> little window to have it in.
>
> Cheers,
>
> --
>   Pascal Obry /  Magny Les Hameaux (78)
>
>   The best way to travel is by means of imagination
>
>   http://www.obry.net
>
>   gpg --keyserver keys.gnupg.net --recv-key F949BD3B
> ___________________________________________________________________________
> darktable developer mailing list
> to unsubscribe send a mail to
> darktable-dev+unsubscr...@lists.darktable.org
>
>

___________________________________________________________________________
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org

Reply via email to