ifd_enumerate.go: PrintTagTree now skips the thumbnail tags

It prints a lot of noise when this does actually relate to saving the
thumbnail image.
dustin/add_skipped_tags_tracking
Dustin Oprea 2020-05-17 01:28:11 -04:00
parent 7f6eb3d9f3
commit 998844ba08
1 changed files with 6 additions and 0 deletions

View File

@ -662,6 +662,12 @@ func (ifd *Ifd) printTagTree(populateValues bool, index, level int, nextLink boo
if ite.ChildIfdPath() != "" {
fmt.Printf("%s - TAG: %s\n", indent, ite)
} else {
// This will just add noise to the output (byte-tags are fully
// dumped).
if ite.IsThumbnailOffset() == true || ite.IsThumbnailSize() == true {
continue
}
it, err := ifd.tagIndex.Get(ifd.IfdPath, ite.TagId())
tagName := ""