mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-13 09:20:29 -07:00
vips: add a vips__gaussblur method
handle both < 7.41 and higher. Prior 7.41, vips_gaussblur took only a int param, the radius. The radius was then divided by 2.0 (min_ampl) in vips_gaussblur. After, you can now parameter the min_ampl and radius became sigma (and passed from an integer to a double).
This commit is contained in:
parent
0f31f20ded
commit
404cbf902f
3 changed files with 29 additions and 0 deletions
|
|
@ -91,6 +91,11 @@ type Watermark struct {
|
|||
Background Color
|
||||
}
|
||||
|
||||
type GaussianBlur struct {
|
||||
Sigma float64
|
||||
MinAmpl float64
|
||||
}
|
||||
|
||||
type Options struct {
|
||||
Height int
|
||||
Width int
|
||||
|
|
@ -117,4 +122,5 @@ type Options struct {
|
|||
Type ImageType
|
||||
Interpolator Interpolator
|
||||
Interpretation Interpretation
|
||||
GaussianBlur GaussianBlur
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue