Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
exif: remove shouldExclude and shouldInclude
Removed those checks because they are already made in the Decode function

#13146
  • Loading branch information
LNA-DEV committed Mar 29, 2025
commit 37e66e9fdb3920ccb447d37f73b1c854b95e1f3d
18 changes: 0 additions & 18 deletions resources/images/exif/exif.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,36 +221,18 @@ func (d *Decoder) Decode(filename string, format imagemeta.ImageFormat, r io.Rea

tagsXmp := make(map[string]any)
for k, v := range tagInfos.XMP() {
if d.shouldExclude(k) {
continue
}
if !d.shouldInclude(k) {
continue
}
tagsXmp[k] = v.Value
tags[k] = v.Value
}

tagsIptc := make(map[string]any)
for k, v := range tagInfos.IPTC() {
if d.shouldExclude(k) {
continue
}
if !d.shouldInclude(k) {
continue
}
tagsIptc[k] = v.Value
tags[k] = v.Value
}

tagsExif := make(map[string]any)
for k, v := range tagInfos.EXIF() {
if d.shouldExclude(k) {
continue
}
if !d.shouldInclude(k) {
continue
}
tagsExif[k] = v.Value
tags[k] = v.Value
}
Expand Down