Skip to content

Commit 82dc859

Browse files
committed
Docs: clarify composite operation ordering #4288
1 parent bee1fba commit 82dc859

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/api-composite.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Composite image(s) over the processed (resized, extracted etc.) image.
66
The images to composite must be the same size or smaller than the processed image.
77
If both `top` and `left` options are provided, they take precedence over `gravity`.
88

9-
Any resize, rotate or extract operations in the same processing pipeline
10-
will always be applied to the input image before composition.
9+
Other operations in the same processing pipeline (e.g. resize, rotate, flip,
10+
flop, extract) will always be applied to the input image before composition.
1111

1212
The `blend` option can be one of `clear`, `source`, `over`, `in`, `out`, `atop`,
1313
`dest`, `dest-over`, `dest-in`, `dest-out`, `dest-atop`,

lib/composite.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ const blend = {
4646
* The images to composite must be the same size or smaller than the processed image.
4747
* If both `top` and `left` options are provided, they take precedence over `gravity`.
4848
*
49-
* Any resize, rotate or extract operations in the same processing pipeline
50-
* will always be applied to the input image before composition.
49+
* Other operations in the same processing pipeline (e.g. resize, rotate, flip,
50+
* flop, extract) will always be applied to the input image before composition.
5151
*
5252
* The `blend` option can be one of `clear`, `source`, `over`, `in`, `out`, `atop`,
5353
* `dest`, `dest-over`, `dest-in`, `dest-out`, `dest-atop`,

0 commit comments

Comments
 (0)