From 5f46da6e2a3f838b40176775c0b46855f4f8f529 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sat, 20 Dec 2025 03:16:36 -0800 Subject: [PATCH] internal/warpc: Increase WebP memory limit to 256 MiB MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Closes #14282 --------- Co-authored-by: Bjørn Erik Pedersen --- hugolib/site.go | 3 ++- internal/warpc/warpc.go | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hugolib/site.go b/hugolib/site.go index 44957404b..79d0677ed 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -265,7 +265,8 @@ func NewHugoSites(cfg deps.DepsCfg) (*HugoSites, error) { // WebP options. warpc.Options{ CompilationCacheDir: compilationCacheDir, - PoolSize: 2, + PoolSize: 1, + Memory: 256, // 256 MiB (4096 MiB Max) Infof: logger.InfoCommand("webp").Logf, Warnf: logger.WarnCommand("webp").Logf, }, diff --git a/internal/warpc/warpc.go b/internal/warpc/warpc.go index 31f0a4807..c3bcca53c 100644 --- a/internal/warpc/warpc.go +++ b/internal/warpc/warpc.go @@ -575,8 +575,7 @@ func newDispatcher[Q, R any](opts Options) (*dispatcherPool[Q, R], error) { } if opts.Memory <= 0 { - // 32 MiB - opts.Memory = 32 + opts.Memory = 32 // 32 MiB } ctx := opts.Ctx -- 2.39.5