mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 21:51:02 +03:00
exif: remove shouldExclude and shouldInclude
Removed those checks because they are already made in the Decode function #13146
This commit is contained in:
parent
dbe24f0482
commit
37e66e9fdb
1 changed files with 0 additions and 18 deletions
|
@ -221,36 +221,18 @@ func (d *Decoder) Decode(filename string, format imagemeta.ImageFormat, r io.Rea
|
||||||
|
|
||||||
tagsXmp := make(map[string]any)
|
tagsXmp := make(map[string]any)
|
||||||
for k, v := range tagInfos.XMP() {
|
for k, v := range tagInfos.XMP() {
|
||||||
if d.shouldExclude(k) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
if !d.shouldInclude(k) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
tagsXmp[k] = v.Value
|
tagsXmp[k] = v.Value
|
||||||
tags[k] = v.Value
|
tags[k] = v.Value
|
||||||
}
|
}
|
||||||
|
|
||||||
tagsIptc := make(map[string]any)
|
tagsIptc := make(map[string]any)
|
||||||
for k, v := range tagInfos.IPTC() {
|
for k, v := range tagInfos.IPTC() {
|
||||||
if d.shouldExclude(k) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
if !d.shouldInclude(k) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
tagsIptc[k] = v.Value
|
tagsIptc[k] = v.Value
|
||||||
tags[k] = v.Value
|
tags[k] = v.Value
|
||||||
}
|
}
|
||||||
|
|
||||||
tagsExif := make(map[string]any)
|
tagsExif := make(map[string]any)
|
||||||
for k, v := range tagInfos.EXIF() {
|
for k, v := range tagInfos.EXIF() {
|
||||||
if d.shouldExclude(k) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
if !d.shouldInclude(k) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
tagsExif[k] = v.Value
|
tagsExif[k] = v.Value
|
||||||
tags[k] = v.Value
|
tags[k] = v.Value
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue