mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Avoid (un)premultiplication for overlay image without alpha channel
Add 'premultiplied' boolean attribute to output info, helps test
This commit is contained in:
@@ -8,6 +8,8 @@ const is = require('./is');
|
||||
* The overlay image 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 the overlay image contains an alpha channel then composition with premultiplication will occur.
|
||||
*
|
||||
* @example
|
||||
* sharp('input.png')
|
||||
* .rotate(180)
|
||||
|
||||
Reference in New Issue
Block a user