• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cshum / imagor / 16298048839

15 Jul 2025 03:49PM UTC coverage: 92.084% (-0.3%) from 92.348%
16298048839

Pull #565

github

cshum
debug docker
Pull Request #565: feat(vips): JPEG XL support

4886 of 5306 relevant lines covered (92.08%)

1.1 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

23.53
/processor/vipsprocessor/exif.go
1
package vipsprocessor
2

3
import "C"
4
import (
5
        "strings"
6
)
7

8
func exifStringShort(s string) string {
×
9
        i := strings.Index(s, " (")
×
10
        if i > -1 {
×
11
                return s[:i]
×
12
        }
×
13
        return s
×
14
}
15

16
func extractExif(rawExif map[string]string) map[string]string {
1✔
17
        var exif = map[string]string{}
1✔
18
        for tag, value := range rawExif {
1✔
19
                if len(tag) < 10 {
×
20
                        continue
×
21
                }
22
                name := tag[10:]
×
23
                value = strings.TrimSpace(exifStringShort(value))
×
24
                if value == "" {
×
25
                        continue
×
26
                }
27
                exif[name] = value
×
28
        }
29
        return exif
1✔
30
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc