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

Function New

processing/svg/svg.go:27–31  ·  view source on GitHub ↗

New creates a new SVG processor instance

(config *Config)

Source from the content-addressed store, hash-verified

25
26// New creates a new SVG processor instance
27func New(config *Config) *Processor {
28 return &Processor{
29 config: config,
30 }
31}
32
33// Process processes the given image data
34func (p *Processor) Process(o *options.Options, data imagedata.ImageData) (imagedata.ImageData, error) {

Callers 4

TestSkipProcessingSVGMethod · 0.92
NewFunction · 0.92
TestSanitizeMethod · 0.92
BenchmarkSvgProcessingFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestSkipProcessingSVGMethod · 0.74
TestSanitizeMethod · 0.74
BenchmarkSvgProcessingFunction · 0.74