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

Method watermark

processing/watermark.go:206–212  ·  view source on GitHub ↗
(c *Context)

Source from the content-addressed store, hash-verified

204}
205
206func (p *Processor) watermark(c *Context) error {
207 if p.watermarkProvider == nil || c.PO.WatermarkOpacity() == 0 {
208 return nil
209 }
210
211 return p.applyWatermark(c.Ctx, c.Img, c.PO, c.DprScale, 1)
212}

Callers

nothing calls this directly

Calls 2

applyWatermarkMethod · 0.95
WatermarkOpacityMethod · 0.80

Tested by

no test coverage detected