anthonynsimon / bild

Image processing algorithms in pure Go
MIT License
3.97k stars 213 forks source link

watermark functionality #56

Closed rajat-mangla closed 5 years ago

rajat-mangla commented 6 years ago

Is there any way, I can have the above functionality using this library

anthonynsimon commented 5 years ago

I think it should be possible via one of the blending modes, i.e.:

import "github.com/anthonynsimon/bild/blend"

opacity := 0.25
result := blend.Opacity(mainImage, watermark, opacity)

https://godoc.org/github.com/anthonynsimon/bild/blend#Opacity