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

several keys added to easyaccess #2374

Merged
merged 3 commits into from
Oct 22, 2022

Conversation

norbertwg
Copy link
Contributor

Related to issue #2338
For lensmodel the call of findMetadatum is replaced by code based on findMetadatum.
Reason: In all samples I analysed, an image containing Exif.NikonLd4.LensIDNumber also contains Exif.NikonLd4.LensID and vice versa. One of them (sometimes both) has the integer value zero, whereas the other can have a reasonable value. So when looping through the tags, a NikonLd4-tag is skipped, when it's value is zero.

Sample easyaccess-test enhanced with additional optional arguments "category" for easier definition of some tests.

Following keys are added:
Exif.Canon.LensModel
Exif.CanonCs.MaxAperture
Exif.CanonSi.ApertureValue
Exif.MinoltaCs5D.ExposureManualBias
Exif.MinoltaCs5D.MeteringMode
Exif.MinoltaCsNew.MinoltaModel
Exif.MinoltaCsOld.MeteringMode
Exif.MinoltaCsOld.MinoltaModel
Exif.Nikon3.ISOSettings
Exif.NikonLd4.LensID
Exif.NikonLd4.LensIDNumber
Exif.NikonLd4.MaxAperture
Exif.NikonPc.Saturation
Exif.NikonSiD300a.ISO
Exif.Olympus2.Macro
Exif.Olympus2.Quality
Exif.OlympusCs.ExposureMode
Exif.OlympusCs.MeteringMode
Exif.OlympusEq.SerialNumber
Exif.OlympusRd.ExposureBiasValue
Exif.OlympusRd2.ExposureBiasValue
Exif.PanasonicRaw.Make
Exif.PanasonicRaw.Model
Exif.PanasonicRaw.Orientation
Exif.Pentax.ExposureTime
Exif.Pentax.FNumber
Exif.Pentax.Flash
Exif.Pentax.MeteringMode
Exif.Pentax.ModelID
Exif.Pentax.Quality
Exif.Pentax.SerialNumber
Exif.Pentax.WhiteBalance
Exif.PentaxDng.ExposureTime
Exif.PentaxDng.FNumber
Exif.PentaxDng.Flash
Exif.PentaxDng.MeteringMode
Exif.PentaxDng.ModelID
Exif.PentaxDng.Quality
Exif.PentaxDng.SerialNumber
Exif.PentaxDng.WhiteBalance
Exif.Photo.BodySerialNumber
Exif.Sigma.MeteringMode
Exif.Sony1Cs.MeteringMode
Exif.Sony1Cs2.ExposureProgram
Exif.Sony1Cs2.MeteringMode
Exif.Sony2Cs.MeteringMode
Exif.SonyMinolta.Quality
Exif.SonyMisc2b.ExposureProgram
Exif.SonyMisc3c.Quality2

sample easyaccess-test enhanced with additional optional arguments
"category" for easier definition of some tests
@norbertwg
Copy link
Contributor Author

Sorry, again need some help. As you see, some jobs failed. Looking into the log, I should have added test reference files for the new exv-files I added for testing. I have created them locally and committed. What shall I do to get it included in this pull request, just a push?

@postscript-dev
Copy link
Collaborator

@norbertwg

What shall I do to get it included in this pull request, just a push?

Yes, pushing locally will update your fork at github.com/norbertwg/exiv2 and here. This link was created when you requested a PR with exiv2.

@codecov
Copy link

codecov bot commented Oct 9, 2022

Codecov Report

Merging #2374 (3c87d82) into main (a2cb06a) will increase coverage by 0.20%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2374      +/-   ##
==========================================
+ Coverage   64.14%   64.34%   +0.20%     
==========================================
  Files         119      119              
  Lines       21071    21097      +26     
  Branches    10394    10406      +12     
==========================================
+ Hits        13515    13575      +60     
+ Misses       5400     5370      -30     
+ Partials     2156     2152       -4     
Impacted Files Coverage Δ
src/easyaccess.cpp 93.49% <100.00%> (+0.39%) ⬆️
src/sonymn_int.cpp 77.52% <0.00%> (+0.16%) ⬆️
src/tiffcomposite_int.cpp 75.81% <0.00%> (+0.20%) ⬆️
src/tiffvisitor_int.cpp 79.73% <0.00%> (+0.35%) ⬆️
src/nikonmn_int.cpp 61.89% <0.00%> (+0.43%) ⬆️
src/olympusmn_int.cpp 41.51% <0.00%> (+0.72%) ⬆️
src/image.cpp 70.45% <0.00%> (+0.93%) ⬆️
src/makernote_int.cpp 66.34% <0.00%> (+0.95%) ⬆️
src/minoltamn_int.cpp 69.05% <0.00%> (+8.07%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@postscript-dev postscript-dev added enhancement feature / functionality enhancements samples labels Oct 20, 2022
@postscript-dev postscript-dev added this to the v1.00 milestone Oct 20, 2022
@postscript-dev
Copy link
Collaborator

@norbertwg
Is your PR ready for review?

@norbertwg
Copy link
Contributor Author

@postscript-dev
Yes, PR is ready for review.

@kevinbackhouse
Copy link
Collaborator

@postscript-dev: is this ok to merge?

@postscript-dev
Copy link
Collaborator

@kevinbackhouse

@postscript-dev: is this ok to merge?

Yes, the changes look good.

@norbertwg
Thanks for taking the time to contributing this, the easyaccess API hadn't been updated for a while and needed work. In the future, when we add new tags to exiv2, we can try to also update the easyaccess arrays.

After reviewing a PR, we usually leave the contributor to perform the merge. You can select squash and merge and then click to add this to the main branch.

@kevinbackhouse
Copy link
Collaborator

Not sure if @norbertwg has permission to merge, so I'll do it.

@kevinbackhouse kevinbackhouse merged commit 222c45c into Exiv2:main Oct 22, 2022
@norbertwg norbertwg deleted the update_easyAccessAPI branch July 30, 2023 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature / functionality enhancements samples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants