diff --git a/docs/changelog.md b/docs/changelog.md index ab5c4d37a..0d03a6184 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -24,6 +24,10 @@ Requires libvips v8.15.2 [#4157](https://github.com/lovell/sharp/pull/4157) [@nkeynes](https://github.com/nkeynes) +* Expose optional `precision` parameter of `blur` operation. + [#4168](https://github.com/lovell/sharp/pull/4168) + [@marcosc90](https://github.com/marcosc90) + ### v0.33.4 - 16th May 2024 * Remove experimental status from `pipelineColourspace`. diff --git a/docs/humans.txt b/docs/humans.txt index 489e4a886..3c027a041 100644 --- a/docs/humans.txt +++ b/docs/humans.txt @@ -302,3 +302,6 @@ GitHub: https://github.com/ton11797 Name: Nathan Keynes GitHub: https://github.com/nkeynes + +Name: Marcos Casagrande +GitHub: https://github.com/marcosc90 diff --git a/test/types/sharp.test-d.ts b/test/types/sharp.test-d.ts index e5eea4427..3e6902cfb 100644 --- a/test/types/sharp.test-d.ts +++ b/test/types/sharp.test-d.ts @@ -59,6 +59,11 @@ sharp('input.jpg') sharp('input.jpg').resize({ width: 300 }).blur(false).blur(true).toFile('output.jpg'); +sharp().blur(); +sharp().blur(1); +sharp().blur({ sigma: 1 }); +sharp().blur({ sigma: 1, precision: 'approximate' }); + sharp({ create: { width: 300,