Skip to content
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

noise profile: read Hi/Lo iso values, refs #11580, fixes #11842 #1612

Merged
merged 1 commit into from
Jan 7, 2018

Conversation

schenlap
Copy link
Contributor

@schenlap schenlap commented Jan 5, 2018

This fixes "./gen-profile: 1: eval: Bad substitution" error
during noise profile calculation with same nikon images.
Tested with images from #11580, fix is copied from #11842.

exiv2 reports
{{{
$ exiv2 -g "Exif.NikonIi.ISO" -Pt DSC_1083.NEF
79
Lo 0.3
79
Lo 0.3
}}}
which can not be parsed correct with current script.

79 seems to be the correct iso value as it is reported from exiv2
without key argument.
{{{
$ exiv2 DSC_1083.NEF | grep ISO
ISO speed : 79
}}}

…arktable-org#11842

This fixes "./gen-profile: 1: eval: Bad substitution" error
during noise profile calculation with same nikon images.
Tested with images from darktable-org#11580, fix is copied from darktable-org#11842.

exiv2 reports
{{{
$ exiv2  -g "Exif.NikonIi.ISO" -Pt DSC_1083.NEF
79
Lo 0.3
79
Lo 0.3
}}}
which can not be parsed correct with current script.

79 seems to be the correct iso value as it is reported from exiv2
without key argument.
{{{
$ exiv2 DSC_1083.NEF | grep ISO
ISO speed       : 79
}}}
Copy link
Member

@LebedevRI LebedevRI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not test this code, but the change looks sane i think.
If it is not, i think you will be the first one to notice :/
All this tooling should not have been written in shell in the first place.

@LebedevRI LebedevRI merged commit afa6441 into darktable-org:master Jan 7, 2018
@LebedevRI LebedevRI added this to the 2.6 milestone Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants