mirror of
https://github.com/lovell/sharp.git
synced 2025-07-14 12:50:12 +02:00
Docs: clarify composite operation ordering
This commit is contained in:
parent
a618ce7a15
commit
e1bc8674fd
@ -7,6 +7,9 @@ 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.
|
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`.
|
If both `top` and `left` options are provided, they take precedence over `gravity`.
|
||||||
|
|
||||||
|
Any resize or rotate operations in the same processing pipeline
|
||||||
|
will always be applied to the input image before composition.
|
||||||
|
|
||||||
The `blend` option can be one of `clear`, `source`, `over`, `in`, `out`, `atop`,
|
The `blend` option can be one of `clear`, `source`, `over`, `in`, `out`, `atop`,
|
||||||
`dest`, `dest-over`, `dest-in`, `dest-out`, `dest-atop`,
|
`dest`, `dest-over`, `dest-in`, `dest-out`, `dest-atop`,
|
||||||
`xor`, `add`, `saturate`, `multiply`, `screen`, `overlay`, `darken`, `lighten`,
|
`xor`, `add`, `saturate`, `multiply`, `screen`, `overlay`, `darken`, `lighten`,
|
||||||
|
@ -43,6 +43,9 @@ const blend = {
|
|||||||
* The images to composite must be the same size or smaller than the processed 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`.
|
* If both `top` and `left` options are provided, they take precedence over `gravity`.
|
||||||
*
|
*
|
||||||
|
* Any resize or rotate operations in the same processing pipeline
|
||||||
|
* will always be applied to the input image before composition.
|
||||||
|
*
|
||||||
* The `blend` option can be one of `clear`, `source`, `over`, `in`, `out`, `atop`,
|
* The `blend` option can be one of `clear`, `source`, `over`, `in`, `out`, `atop`,
|
||||||
* `dest`, `dest-over`, `dest-in`, `dest-out`, `dest-atop`,
|
* `dest`, `dest-over`, `dest-in`, `dest-out`, `dest-atop`,
|
||||||
* `xor`, `add`, `saturate`, `multiply`, `screen`, `overlay`, `darken`, `lighten`,
|
* `xor`, `add`, `saturate`, `multiply`, `screen`, `overlay`, `darken`, `lighten`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user