From 17d8161d995531d0b95a01592122c6ef57b88369 Mon Sep 17 00:00:00 2001 From: celogeek <65178+celogeek@users.noreply.github.com> Date: Sun, 16 Apr 2023 18:02:55 +0200 Subject: [PATCH] fix filter double page --- internal/epub/image_filters.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/epub/image_filters.go b/internal/epub/image_filters.go index 058f5e1..450ec43 100644 --- a/internal/epub/image_filters.go +++ b/internal/epub/image_filters.go @@ -46,7 +46,7 @@ func NewGiftSplitDoublePage(options *ImageOptions) []*gift.GIFT { g.Add(gift.Brightness(float32(options.Brightness))) } g.Add( - gift.ResizeToFit(options.ViewWidth, options.ViewHeight, gift.LanczosResampling), + filters.Resize(options.ViewWidth, options.ViewHeight, gift.LanczosResampling), ) }