(c *Context)
| 30 | } |
| 31 | |
| 32 | func (p *Processor) extendAspectRatio(c *Context) error { |
| 33 | if !c.PO.ExtendAspectRatioEnabled() { |
| 34 | return nil |
| 35 | } |
| 36 | |
| 37 | width, height := c.ExtendAspectRatioWidth, c.ExtendAspectRatioHeight |
| 38 | if width == 0 || height == 0 { |
| 39 | return nil |
| 40 | } |
| 41 | |
| 42 | gravity := c.PO.ExtendAspectRatioGravity() |
| 43 | return extendImage(c, width, height, &gravity) |
| 44 | } |
nothing calls this directly
no test coverage detected