Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/common/exif.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,18 @@ static void _check_highlight_preservation(Exiv2::ExifData &exifData,
else if(state == 2)
img->exif_highlight_preservation = 0.66f; // estimated strength for Strong
}
else if(FIND_EXIF_TAG("Exif.CanonLiOp.AutoLightingOptimizer"))
{
// Canon CR3 contains another tag, but same enum values
// [0] state - 0=standard, 1=low, 2=strong, 3=off
const long state = pos->toLong(0);
if(state == 0)
img->exif_highlight_preservation = 0.50f; // estimated strength for Standard
else if(state == 1)
img->exif_highlight_preservation = 0.33f; // estimated strength for Low
else if(state == 2)
img->exif_highlight_preservation = 0.66f; // estimated strength for Strong
}
else if(FIND_EXIF_TAG("Exif.Fujifilm.DevelopmentDynamicRange") // manual mode DR100/DR200/DR400
|| FIND_EXIF_TAG("Exif.Fujifilm.AutoDynamicRange")) // auto mode
{
Expand Down
2 changes: 2 additions & 0 deletions src/imageio/imageio_libraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,8 @@ dt_imageio_retval_t dt_imageio_open_libraw(dt_image_t *img,
img->buf_dsc.filters = raw->idata.filters;
}

dt_exif_img_check_additional_tags(img, filename);

// For CR3, we only have Bayer data and a single channel
img->buf_dsc.channels = 1;

Expand Down