mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-10 16:00:26 -07:00
refactor: comparse as pure string
This commit is contained in:
parent
eff3f079af
commit
3f063b6a2f
1 changed files with 2 additions and 2 deletions
|
|
@ -199,12 +199,12 @@ func rotateImage(image *C.struct__VipsImage, o Options) (*C.struct__VipsImage, e
|
|||
}
|
||||
|
||||
func watermakImage(image *C.struct__VipsImage, w Watermark) (*C.struct__VipsImage, error) {
|
||||
if len(w.Text) == 0 {
|
||||
if w.Text == "" {
|
||||
return image, nil
|
||||
}
|
||||
|
||||
// Defaults
|
||||
if len(w.Font) == 0 {
|
||||
if w.Font == "" {
|
||||
w.Font = "sans 10"
|
||||
}
|
||||
if w.Width == 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue