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

cshum / imagor / 21680751765

04 Feb 2026 05:03PM UTC coverage: 91.894% (-0.04%) from 91.931%
21680751765

Pull #727

github

cshum
sepapration of concern
Pull Request #727: refactor: vips processor filter logic refacor

178 of 200 new or added lines in 3 files covered. (89.0%)

1 existing line in 1 file now uncovered.

5714 of 6218 relevant lines covered (91.89%)

1.1 hits per line

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

89.47
/processor/vipsprocessor/util.go
1
package vipsprocessor
2

3
import (
4
        "github.com/cshum/vipsgen/vips"
5
)
6

7
// linearRGB applies linear RGB transformation to an image
8
// Automatically handles alpha channel if present
9
func linearRGB(img *vips.Image, a, b []float64) error {
1✔
10
        if img.HasAlpha() {
2✔
11
                a = append(a, 1)
1✔
12
                b = append(b, 0)
1✔
13
        }
1✔
14
        return img.Linear(a, b, nil)
1✔
15
}
16

17
// isAnimated checks if an image is animated (multi-page)
18
func isAnimated(img *vips.Image) bool {
1✔
19
        return img.Height() > img.PageHeight()
1✔
20
}
1✔
21

22
// getAngle converts an integer angle to vips.Angle enum
23
func getAngle(angle int) vips.Angle {
1✔
24
        switch angle {
1✔
25
        case 90:
1✔
26
                return vips.AngleD270
1✔
27
        case 180:
1✔
28
                return vips.AngleD180
1✔
29
        case 270:
1✔
30
                return vips.AngleD90
1✔
NEW
31
        default:
×
NEW
32
                return vips.AngleD0
×
33
        }
34
}
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