From 7de6ad1508fae3566e33ea9a00b367926a0054aa Mon Sep 17 00:00:00 2001 From: celogeek <65178+celogeek@users.noreply.github.com> Date: Wed, 10 May 2023 08:48:51 +0200 Subject: [PATCH] increase base size to avoid reaching the limit --- internal/epub/epub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/epub/epub.go b/internal/epub/epub.go index 4a170fd..98ecc5a 100644 --- a/internal/epub/epub.go +++ b/internal/epub/epub.go @@ -237,7 +237,7 @@ func (e *ePub) getParts() (parts []*epubPart, imgStorage *epubzip.EPUBZipStorage maxSize := uint64(e.LimitMb * 1024 * 1024) xhtmlSize := uint64(1024) // descriptor files + title + cover - baseSize := uint64(16*1024) + imgStorage.Size(cover.EPUBImgPath())*2 + baseSize := uint64(128*1024) + imgStorage.Size(cover.EPUBImgPath())*2 currentSize := baseSize currentImages := make([]*epubimage.Image, 0)