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

Method watermarkPipeline

processing/watermark.go:16–25  ·  view source on GitHub ↗

watermarkPipeline constructs the watermark processing pipeline. This pipeline is applied to the watermark image.

()

Source from the content-addressed store, hash-verified

14// watermarkPipeline constructs the watermark processing pipeline.
15// This pipeline is applied to the watermark image.
16func (p *Processor) watermarkPipeline() Pipeline {
17 return Pipeline{
18 p.vectorGuardScale,
19 p.scaleOnLoad,
20 p.colorspaceToProcessing,
21 p.scale,
22 p.rotateAndFlip,
23 p.padding,
24 }
25}
26
27func shouldReplicateWatermark(gt GravityType) bool {
28 return gt == GravityReplicate

Callers 1

prepareWatermarkMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected