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

Function NewDefaultConfig

processing/svg/config.go:18–22  ·  view source on GitHub ↗

NewDefaultConfig creates a new Config instance with default values

()

Source from the content-addressed store, hash-verified

16
17// NewDefaultConfig creates a new Config instance with default values
18func NewDefaultConfig() Config {
19 return Config{
20 Sanitize: true, // By default, sanitize SVG for security
21 }
22}
23
24// LoadConfigFromEnv loads configuration from environment variables
25func LoadConfigFromEnv(c *Config) (*Config, error) {

Callers 4

TestSkipProcessingSVGMethod · 0.92
NewDefaultConfigFunction · 0.92
TestSanitizeMethod · 0.92
BenchmarkSvgProcessingFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestSkipProcessingSVGMethod · 0.74
TestSanitizeMethod · 0.74
BenchmarkSvgProcessingFunction · 0.74