mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Implements negation.
This commit is contained in:
@@ -272,6 +272,10 @@ The default background is `{r: 0, g: 0, b: 0, a: 1}`, black without transparency
|
||||
|
||||
Merge alpha transparency channel, if any, with `background`.
|
||||
|
||||
#### negate()
|
||||
|
||||
Produces the "negative" of the image. White => Black, Black => White, Blue => Yellow, etc.
|
||||
|
||||
#### rotate([angle])
|
||||
|
||||
Rotate the output image by either an explicit angle or auto-orient based on the EXIF `Orientation` tag.
|
||||
|
||||
Reference in New Issue
Block a user