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

Method parsePresets

options/parser/presets.go:12–20  ·  view source on GitHub ↗

parsePresets parses presets from the config and fills the presets map

()

Source from the content-addressed store, hash-verified

10
11// parsePresets parses presets from the config and fills the presets map
12func (p *Parser) parsePresets() error {
13 for _, presetStr := range p.config.Presets {
14 if err := p.parsePreset(presetStr); err != nil {
15 return err
16 }
17 }
18
19 return nil
20}
21
22// parsePreset parses a preset string and returns the name and options
23func (p *Parser) parsePreset(presetStr string) error {

Callers 1

NewFunction · 0.95

Calls 1

parsePresetMethod · 0.95

Tested by

no test coverage detected