(c *Context)
| 20 | } |
| 21 | |
| 22 | func (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 | |
| 32 | func (p *Processor) extendAspectRatio(c *Context) error { |
| 33 | if !c.PO.ExtendAspectRatioEnabled() { |
nothing calls this directly
no test coverage detected