remove blur on title image

This commit is contained in:
Celogeek 2023-04-28 13:17:35 +02:00
parent 0fdbf5baca
commit 341fd2649e
Signed by: celogeek
SSH Key Fingerprint: SHA256:njNJLzoLQdbV9PC6ehcruRb0QnEgxABoCYZ+0+aUIYc

View File

@ -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
func (p *coverTitle) Draw(dst draw.Image, src image.Image, options *gift.Options) {
// Create a blur version of the cover
g := gift.New(gift.GaussianBlur(4))
g.Draw(dst, src)
draw.Draw(dst, dst.Bounds(), src, src.Bounds().Min, draw.Src)
srcWidth, srcHeight := src.Bounds().Dx(), src.Bounds().Dy()