-
Notifications
You must be signed in to change notification settings - Fork 278
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
duplicate TagInfo entries in fujimn_int.cpp #2409
Comments
@norbertwg Within a tag group, if the duplicate keys both use the same tag number, I don't expect any problems when reading/writing. In #2323, I found that we had duplicates which had the same key but different tag numbers. In that case, only the first matching key in the list was available. I resolved the problem by renaming the duplicate keys. It is possible that the duplicate Fujifilm tags will still cause problems when Building Exiv2 Tag Webpages. I have tried generating the pages and the duplicates were present in the Fujifilm page. I don't know if the final website scripts in https://github.com/Exiv2/team/tree/main/website purge duplicates. I think that it is better to remove the duplicates and both |
I will work on removing duplicates and try to rename/update "0x1022" and "0x1032". |
Hi @norbertwg, |
Hi @VJSchneid , |
Okay, if you need any help, let me know. |
Pull request #2412 is created. @postscript-dev : the unknown tags "0x1022" and "0x1032" were described, so I could just delete their lines without additonal work. I checked https://github.com/Exiv2/team/tree/main/website, but "0x1200" was not listed there. So I deleted it. @VJSchneid : would you like to review the pull request? As pull request is created, I close this issue. |
Running
taglist ALL
and analysing the output I detected several duplicate entries for Fujifilm. They are not only duplicate key names (like I also found), the complete TagInfo definition is duplicate. The duplicates appeared with Merge remote-tracking branch 'origin'.As far as I can see, the duplicates have no negative impact on functionality. It seems just to be a duplication of code by mistake. When iterating starting with
const Exiv2::TagInfo* ti = Exiv2::Internal::tagList(ifdId);
no duplicates appear. In taglist.cpp the logic is different and then we get these duplicates.
@VJSchneid : Do you know, if the duplicates are intentionally or by mistake?
As I spent already some time to investigate this, I offer to create a pull request in case it is confirmed, that the duplicates should be removed.
Here the list of duplicates:
0x1001 Fujifilm.Sharpness
0x1002 Fujifilm.WhiteBalance
0x1003 Fujifilm.Color
0x1004 Fujifilm.Tone
0x1010 Fujifilm.FlashMode
0x1011 Fujifilm.FlashStrength
0x1020 Fujifilm.Macro
0x1021 Fujifilm.FocusMode
0x1030 Fujifilm.SlowSync
0x1031 Fujifilm.PictureMode
0x1040 Fujifilm.ShadowTone
0x1041 Fujifilm.HighlightTone
0x104d Fujifilm.CropMode
0x1100 Fujifilm.Continuous
0x1101 Fujifilm.SequenceNumber
0x1200 Fujifilm.0x1200
0x1210 Fujifilm.FinePixColor
0x1300 Fujifilm.BlurWarning
0x1301 Fujifilm.FocusWarning
0x1302 Fujifilm.ExposureWarning
0x1400 Fujifilm.DynamicRange
0x1401 Fujifilm.FilmMode
0x1402 Fujifilm.DynamicRangeSetting
0x1403 Fujifilm.DevelopmentDynamicRange
0x1404 Fujifilm.MinFocalLength
0x1405 Fujifilm.MaxFocalLength
0x1406 Fujifilm.MaxApertureAtMinFocal
0x1407 Fujifilm.MaxApertureAtMaxFocal
0x1431 Fujifilm.Rating
0x1443 Fujifilm.DRangePriority
0x1444 Fujifilm.DRangePriorityFixed
0x1445 Fujifilm.DRangePriorityAuto
0x8000 Fujifilm.FileSource
0x8002 Fujifilm.OrderNumber
0x8003 Fujifilm.FrameNumber
0xf000 Fujifilm.FujiIFD
0xf001 Fujifilm.RawImageFullWidth
The text was updated successfully, but these errors were encountered: