1
0
mirror of https://github.com/dsoprea/go-exif.git synced 2025-04-28 13:51:38 +00:00

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.
This commit is contained in:
Dustin Oprea 2020-05-17 01:28:11 -04:00
parent 7f6eb3d9f3
commit 998844ba08

@ -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 := ""