mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-08 23:18:19 -07:00
Add support for image watermarks
This commit is contained in:
parent
2ccb6aa8a7
commit
1a661e4e52
9 changed files with 325 additions and 26 deletions
|
|
@ -157,6 +157,14 @@ type Watermark struct {
|
|||
Background Color
|
||||
}
|
||||
|
||||
// WatermarkImage represents the image-based watermark supported options.
|
||||
type WatermarkImage struct {
|
||||
Left int
|
||||
Top int
|
||||
Buf []byte
|
||||
Opacity float32
|
||||
}
|
||||
|
||||
// GaussianBlur represents the gaussian image transformation values.
|
||||
type GaussianBlur struct {
|
||||
Sigma float64
|
||||
|
|
@ -198,6 +206,7 @@ type Options struct {
|
|||
Background Color
|
||||
Gravity Gravity
|
||||
Watermark Watermark
|
||||
WatermarkImage WatermarkImage
|
||||
Type ImageType
|
||||
Interpolator Interpolator
|
||||
Interpretation Interpretation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue