mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-13 01:10:29 -07:00
GammaFilter
This commit is contained in:
parent
15cd115607
commit
f67988d37b
5 changed files with 40 additions and 0 deletions
6
image.go
6
image.go
|
|
@ -185,6 +185,12 @@ func (i *Image) Trim() ([]byte, error) {
|
|||
return i.Process(options)
|
||||
}
|
||||
|
||||
// Gamma returns the gamma filtered image buffer.
|
||||
func (i *Image) Gamma(exponent float64) ([]byte, error) {
|
||||
options := Options{Gamma: exponent}
|
||||
return i.Process(options)
|
||||
}
|
||||
|
||||
// Process processes the image based on the given transformation options,
|
||||
// talking with libvips bindings accordingly and returning the resultant
|
||||
// image buffer.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue