Ensure trim op supports image-in-alpha #1597

This commit is contained in:
Lovell Fuller
2019-11-14 11:29:45 +00:00
parent 833aaead56
commit c41b87303d
7 changed files with 37 additions and 3 deletions

View File

@@ -196,6 +196,8 @@ Returns **Sharp**
## trim
Trim "boring" pixels from all edges that contain values similar to the top-left pixel.
Images consisting entirely of a single colour will calculate "boring" using the alpha channel, if any.
The `info` response Object will contain `trimOffsetLeft` and `trimOffsetTop` properties.
### Parameters

View File

@@ -6,6 +6,9 @@ Requires libvips v8.8.1.
#### v0.23.3 - TBD
* Ensure `trim` operation supports images contained in the alpha channel.
[#1597](https://github.com/lovell/sharp/issues/1597)
* Ensure tile `overlap` option works as expected.
[#1921](https://github.com/lovell/sharp/pull/1921)
[@rustyguts](https://github.com/rustyguts)