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

Method MaxSrcResolution

security/checker.go:25–27  ·  view source on GitHub ↗

MaxSrcResolution returns the maximum allowed source image resolution

(o *options.Options)

Source from the content-addressed store, hash-verified

23
24// MaxSrcResolution returns the maximum allowed source image resolution
25func (s *Checker) MaxSrcResolution(o *options.Options) int {
26 return o.GetInt(keys.MaxSrcResolution, s.config.MaxSrcResolution)
27}
28
29// MaxSrcFileSize returns the maximum allowed source file size
30func (s *Checker) MaxSrcFileSize(o *options.Options) int {

Callers 1

CheckDimensionsMethod · 0.95

Calls 1

GetIntMethod · 0.45

Tested by

no test coverage detected