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

Method MaxAnimationFrameResolution

security/checker.go:40–45  ·  view source on GitHub ↗

MaxAnimationFrameResolution returns the maximum allowed animation frame resolution

(o *options.Options)

Source from the content-addressed store, hash-verified

38
39// MaxAnimationFrameResolution returns the maximum allowed animation frame resolution
40func (s *Checker) MaxAnimationFrameResolution(o *options.Options) int {
41 return o.GetInt(
42 keys.MaxAnimationFrameResolution,
43 s.config.MaxAnimationFrameResolution,
44 )
45}
46
47// MaxResultDimension returns the maximum allowed result image dimension
48func (s *Checker) MaxResultDimension(o *options.Options) int {

Callers 1

CheckDimensionsMethod · 0.95

Calls 1

GetIntMethod · 0.45

Tested by

no test coverage detected