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

Method isGravityOffsetValid

options/parser/parse.go:335–340  ·  view source on GitHub ↗
(
	gravity processing.GravityType,
	offset float64,
)

Source from the content-addressed store, hash-verified

333}
334
335func (p *Parser) isGravityOffsetValid(
336 gravity processing.GravityType,
337 offset float64,
338) bool {
339 return gravity != processing.GravityFocusPoint || (offset >= 0 && offset <= 1)
340}
341
342func (p *Parser) parseGravity(
343 ctx context.Context,

Callers 1

parseGravityMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected