mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 08:12:36 +02:00
remove blur on title image
This commit is contained in:
parent
0fdbf5baca
commit
341fd2649e
@ -27,9 +27,7 @@ func (p *coverTitle) Bounds(srcBounds image.Rectangle) (dstBounds image.Rectangl
|
|||||||
|
|
||||||
// blur the src image, and create a box with the title in the middle
|
// blur the src image, and create a box with the title in the middle
|
||||||
func (p *coverTitle) Draw(dst draw.Image, src image.Image, options *gift.Options) {
|
func (p *coverTitle) Draw(dst draw.Image, src image.Image, options *gift.Options) {
|
||||||
// Create a blur version of the cover
|
draw.Draw(dst, dst.Bounds(), src, src.Bounds().Min, draw.Src)
|
||||||
g := gift.New(gift.GaussianBlur(4))
|
|
||||||
g.Draw(dst, src)
|
|
||||||
|
|
||||||
srcWidth, srcHeight := src.Bounds().Dx(), src.Bounds().Dy()
|
srcWidth, srcHeight := src.Bounds().Dx(), src.Bounds().Dy()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user