mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Add experimental overlayWith API
Composites an overlay image with alpha channel into the input image (which must have alpha channel) using ‘over’ alpha compositing blend mode. This API requires both images to have the same dimensions. References: - http://en.wikipedia.org/wiki/Alpha_compositing#Alpha_blending - https://github.com/jcupitt/ruby-vips/issues/28#issuecomment-9014826 See #97.
This commit is contained in:
committed by
Lovell Fuller
parent
c886eaa6b0
commit
64f7f1d662
BIN
test/fixtures/alpha-layer-1-fill.png
vendored
Normal file
BIN
test/fixtures/alpha-layer-1-fill.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 260 KiB |
Reference in New Issue
Block a user