From 341fd2649e89887e5bd133b1c41e5853c4752852 Mon Sep 17 00:00:00 2001 From: celogeek <65178+celogeek@users.noreply.github.com> Date: Fri, 28 Apr 2023 13:17:35 +0200 Subject: [PATCH] remove blur on title image --- internal/epub/imagefilters/epub_image_filters_cover_title.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/epub/imagefilters/epub_image_filters_cover_title.go b/internal/epub/imagefilters/epub_image_filters_cover_title.go index a42c507..b1abd74 100644 --- a/internal/epub/imagefilters/epub_image_filters_cover_title.go +++ b/internal/epub/imagefilters/epub_image_filters_cover_title.go @@ -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()