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

Method flatten

processing/flatten.go:3–9  ·  view source on GitHub ↗
(c *Context)

Source from the content-addressed store, hash-verified

1package processing
2
3func (p *Processor) flatten(c *Context) error {
4 if !c.PO.ShouldFlatten() && c.PO.Format().SupportsAlpha() {
5 return nil
6 }
7
8 return c.Img.Flatten(c.PO.Background())
9}

Callers

nothing calls this directly

Calls 5

ShouldFlattenMethod · 0.80
SupportsAlphaMethod · 0.80
FlattenMethod · 0.80
BackgroundMethod · 0.80
FormatMethod · 0.65

Tested by

no test coverage detected