mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-08 23:18:19 -07:00
Fix for memory issue when watermarking images
This commit is contained in:
parent
7cb8aa33c4
commit
ff7970929b
4 changed files with 45 additions and 117 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