MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / PaddingEnabled

Method PaddingEnabled

processing/options.go:142–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140}
141
142func (po ProcessingOptions) PaddingEnabled() bool {
143 return po.PaddingTop() != 0 ||
144 po.PaddingRight() != 0 ||
145 po.PaddingBottom() != 0 ||
146 po.PaddingLeft() != 0
147}
148
149func (po ProcessingOptions) PaddingTop() int {
150 return po.GetInt(keys.PaddingTop, 0)

Callers 2

determineOutputFormatMethod · 0.80
paddingMethod · 0.80

Calls 4

PaddingTopMethod · 0.95
PaddingRightMethod · 0.95
PaddingBottomMethod · 0.95
PaddingLeftMethod · 0.95

Tested by

no test coverage detected