Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/imgproxy/imgproxy
/ Scale
Function
Scale
imath/imath.go:24–30 ·
view source on GitHub ↗
(a int, scale float64)
Source
from the content-addressed store, hash-verified
22
}
23
24
func
Scale(a int, scale float64) int {
25
if
a == 0 {
26
return
0
27
}
28
29
return
Round(float64(a) * scale)
30
}
31
32
func
ScaleToEven(a int, scale float64) int {
33
if
a == 0 {
Callers
4
CalcCropSize
Function · 0.92
calcSizes
Method · 0.92
saveImageToFitBytes
Function · 0.92
scaleOnLoad
Method · 0.92
Calls
1
Round
Function · 0.85
Tested by
no test coverage detected