watermarkPipeline constructs the watermark processing pipeline. This pipeline is applied to the watermark image.
()
| 14 | // watermarkPipeline constructs the watermark processing pipeline. |
| 15 | // This pipeline is applied to the watermark image. |
| 16 | func (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 | |
| 27 | func shouldReplicateWatermark(gt GravityType) bool { |
| 28 | return gt == GravityReplicate |