Skip to content

Commit

Permalink
Docs: clarify composite operation ordering #4288
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Dec 5, 2024
1 parent bee1fba commit 82dc859
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/api-composite.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
4 changes: 2 additions & 2 deletions lib/composite.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit 82dc859

Please sign in to comment.