mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-16 19:05:54 -07:00
Second try, watermarking memory issue fix
This commit is contained in:
parent
71db9b9765
commit
6ca6dd12de
4 changed files with 48 additions and 118 deletions
|
|
@ -354,13 +354,7 @@ func watermarkImageWithAnotherImage(image *C.VipsImage, w WatermarkImage) (*C.Vi
|
|||
w.Opacity = 1.0
|
||||
}
|
||||
|
||||
watermark, _, err := loadImage(w.Buf)
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
image, err = vipsDrawWatermark(image, watermark, w)
|
||||
image, err := vipsDrawWatermark(image, w)
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue