mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-12-23 22:11:10 +02:00
10 lines
189 B
Go
10 lines
189 B
Go
package processing
|
|
|
|
func (p *Processor) flatten(c *Context) error {
|
|
if !c.PO.ShouldFlatten() && c.PO.Format().SupportsAlpha() {
|
|
return nil
|
|
}
|
|
|
|
return c.Img.Flatten(c.PO.Background())
|
|
}
|