Changelog entry, credit and doc update for #1835

This commit is contained in:
Lovell Fuller 2019-08-14 20:17:31 +01:00
parent 4ae8999f62
commit e4333ff6b0
10 changed files with 8 additions and 1 deletions

View File

@ -13,6 +13,10 @@ Requires libvips v8.8.1.
[#1834](https://github.com/lovell/sharp/pull/1834) [#1834](https://github.com/lovell/sharp/pull/1834)
[@jaubourg](https://github.com/jaubourg) [@jaubourg](https://github.com/jaubourg)
* Add `premultiplied` option to `composite` operation.
[#1835](https://github.com/lovell/sharp/pull/1835)
[@Andargor](https://github.com/Andargor)
* Ensure image is at least 3x3 pixels before attempting trim operation. * Ensure image is at least 3x3 pixels before attempting trim operation.
#### v0.23.0 - 29<sup>th</sup> July 2019 #### v0.23.0 - 29<sup>th</sup> July 2019

View File

@ -126,6 +126,7 @@ the help and code contributions of the following people:
* [Michael B. Klein](https://github.com/mbklein) * [Michael B. Klein](https://github.com/mbklein)
* [Jakub Michálek](https://github.com/Goues) * [Jakub Michálek](https://github.com/Goues)
* [Ilya Ovdin](https://github.com/iovdin) * [Ilya Ovdin](https://github.com/iovdin)
* [Andargor](https://github.com/Andargor)
Thank you! Thank you!

View File

@ -81,6 +81,7 @@ const blend = {
* @param {Number} [images[].top] - the pixel offset from the top edge. * @param {Number} [images[].top] - the pixel offset from the top edge.
* @param {Number} [images[].left] - the pixel offset from the left edge. * @param {Number} [images[].left] - the pixel offset from the left edge.
* @param {Boolean} [images[].tile=false] - set to true to repeat the overlay image across the entire image with the given `gravity`. * @param {Boolean} [images[].tile=false] - set to true to repeat the overlay image across the entire image with the given `gravity`.
* @param {Boolean} [images[].premultiplied=false] - set to true to avoid premultipling the image below. Equivalent to the `--premultiplied` vips option.
* @param {Number} [images[].density=72] - number representing the DPI for vector overlay image. * @param {Number} [images[].density=72] - number representing the DPI for vector overlay image.
* @param {Object} [images[].raw] - describes overlay when using raw pixel data. * @param {Object} [images[].raw] - describes overlay when using raw pixel data.
* @param {Number} [images[].raw.width] * @param {Number} [images[].raw.width]

View File

@ -61,7 +61,8 @@
"Keith Belovay <keith@picthrive.com>", "Keith Belovay <keith@picthrive.com>",
"Michael B. Klein <mbklein@gmail.com>", "Michael B. Klein <mbklein@gmail.com>",
"Jordan Prudhomme <jordan@raboland.fr>", "Jordan Prudhomme <jordan@raboland.fr>",
"Ilya Ovdin <iovdin@gmail.com>" "Ilya Ovdin <iovdin@gmail.com>",
"Andargor <andargor@yahoo.com>"
], ],
"scripts": { "scripts": {
"install": "(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)", "install": "(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)",

0
test/fixtures/expected/expected.absent.composite.premultiplied.png vendored Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

0
test/fixtures/expected/expected.false.composite.premultiplied.png vendored Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

0
test/fixtures/expected/expected.true.composite.premultiplied.png vendored Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

0
test/fixtures/input.above.composite.premultiplied.png vendored Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

0
test/fixtures/input.below.composite.premultiplied.png vendored Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

0
test/unit/composite.js Executable file → Normal file
View File