From 82dc859a496f6759aad2aa819d1d713a9259fe94 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Thu, 5 Dec 2024 12:34:54 +0000 Subject: [PATCH] Docs: clarify composite operation ordering #4288 --- docs/api-composite.md | 4 ++-- lib/composite.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api-composite.md b/docs/api-composite.md index 40062ebed..e8b96de13 100644 --- a/docs/api-composite.md +++ b/docs/api-composite.md @@ -6,8 +6,8 @@ Composite image(s) over the processed (resized, extracted etc.) image. The images to composite must be the same size or smaller than the processed image. If both `top` and `left` options are provided, they take precedence over `gravity`. -Any resize, rotate or extract operations in the same processing pipeline -will always be applied to the input image before composition. +Other operations in the same processing pipeline (e.g. resize, rotate, flip, +flop, extract) will always be applied to the input image before composition. The `blend` option can be one of `clear`, `source`, `over`, `in`, `out`, `atop`, `dest`, `dest-over`, `dest-in`, `dest-out`, `dest-atop`, diff --git a/lib/composite.js b/lib/composite.js index 892c62985..2dd122fba 100644 --- a/lib/composite.js +++ b/lib/composite.js @@ -46,8 +46,8 @@ const blend = { * The images to composite must be the same size or smaller than the processed image. * If both `top` and `left` options are provided, they take precedence over `gravity`. * - * Any resize, rotate or extract operations in the same processing pipeline - * will always be applied to the input image before composition. + * Other operations in the same processing pipeline (e.g. resize, rotate, flip, + * flop, extract) will always be applied to the input image before composition. * * The `blend` option can be one of `clear`, `source`, `over`, `in`, `out`, `atop`, * `dest`, `dest-over`, `dest-in`, `dest-out`, `dest-atop`,