From 37e66e9fdb3920ccb447d37f73b1c854b95e1f3d Mon Sep 17 00:00:00 2001 From: Lukas Nagel Date: Sat, 29 Mar 2025 19:14:56 +0100 Subject: [PATCH] exif: remove shouldExclude and shouldInclude Removed those checks because they are already made in the Decode function #13146 --- resources/images/exif/exif.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/resources/images/exif/exif.go b/resources/images/exif/exif.go index 014f5b24a..df97b5e1b 100644 --- a/resources/images/exif/exif.go +++ b/resources/images/exif/exif.go @@ -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 }