mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Ensure trim op supports image-in-alpha #1597
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user