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

Incorrect exposure bias value #24

Open
Anasthase opened this issue Apr 2, 2017 · 1 comment
Open

Incorrect exposure bias value #24

Anasthase opened this issue Apr 2, 2017 · 1 comment

Comments

@Anasthase
Copy link
Contributor

Hello,

Attached are 2 files with non-zero exposure bias value. DSC_5644 is +0.3 EV and DSC02268 is -1.3EV. Easyexif reports 0 for both images.

In fact the exposure bias value is not read at all, as the expected format is 5, but the reported format is 10. I've tried to force-read the tag as format 5, but it crashed.

Thanks for your help.

dsc_5644
dsc02268

@asmaloney
Copy link
Contributor

This is because ExposureBiasValue (or ExposureCompensation) is a signed rational which isn't handled properly.

A signed rational is format 10 and this code only handles formats 1-5.

Because of this, ShutterSpeedValue and ExposureBiasValue will not be correctly reported.

asmaloney added a commit to asmaloney/easyexif that referenced this issue Sep 10, 2018
- signed rationals (format 10) are treated the same way as unsigned rationals (format 5)
- ShutterSpeedValue is an APEX value, so calculate and store the actual value

Fixes mayanklahiri#24
asmaloney added a commit to asmaloney/easyexif that referenced this issue Sep 10, 2018
Signed rationals (format 10) are treated the same way as unsigned rationals (format 5)

Fixes mayanklahiri#24
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

No branches or pull requests

2 participants