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

Method extend

processing/extend.go:22–30  ·  view source on GitHub ↗
(c *Context)

Source from the content-addressed store, hash-verified

20}
21
22func (p *Processor) extend(c *Context) error {
23 if !c.PO.ExtendEnabled() {
24 return nil
25 }
26
27 width, height := c.TargetWidth, c.TargetHeight
28 gravity := c.PO.ExtendGravity()
29 return extendImage(c, width, height, &gravity)
30}
31
32func (p *Processor) extendAspectRatio(c *Context) error {
33 if !c.PO.ExtendAspectRatioEnabled() {

Callers

nothing calls this directly

Calls 3

extendImageFunction · 0.85
ExtendEnabledMethod · 0.80
ExtendGravityMethod · 0.80

Tested by

no test coverage detected