Resizing image with hugo v0.153.1: unknown format

How to reproduce:

Clone Hugoplate theme and run the preview of the example site:

git clone https://github.com/zeon-studio/hugoplate.git
cd hugoplate/exampleSite
hugo server

When running preview for the first time, everything works smoothly. A soon as you invoke the preview another time an error occurs:

hugo server
ERROR error building site: ...
hugoplate/exampleSite/assets/images/avatar.png": resize /images/avatar_hu_67d6599cfb89795d.webp: image: unknown format

Please note that this issue does not occur with hugo version 0.152.2:

hvm use 0.152.2
Using v0.152.2 from cache.
hugo server
...
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1) 
Press Ctrl+C to stop

Any idea whats going wrong here? The example site uses this module for image generation:

I am suspicious of:

Or something similar.

Although I haven’t examined the published site, building with the --ignoreCache does not throw an error.

I’m unable to reproduce on Windows 11

git clone https://github.com/zeon-studio/hugoplate.git topic-hugoPlateWebpError
set-Location topic-hugoPlateWebpError/exampleSite
hvm use latest
npm install --save-dev tailwindcss @tailwindcss/cli
hugo server

Hugo version management is enabled in this directory.
Run 'hvm status' for details, or 'hvm disable' to disable.

Watching for changes in C:/_repos/github/clone/topic-hugoPlateWebpError/exampleSite/assets/{css,images}, C:/_repos/github/clone/topic-hugoPlateWebpError/exampleSite/content/english/{about,authors,blog,contact,pages,...}, C:/_repos/github/clone/topic-hugoPlateWebpError/exampleSite/data, C:/_repos/github/clone/topic-hugoPlateWebpError/exampleSite/i18n
Watching for config changes in C:\_repos\github\clone\topic-hugoPlateWebpError\exampleSite\hugo.toml, C:\_repos\github\clone\topic-hugoPlateWebpError\exampleSite\config\_default, C:\_repos\github\clone\topic-hugoPlateWebpError\exampleSite\config\development, C:\_repos\github\clone\topic-hugoPlateWebpError\exampleSite\go.mod
Start building sites …
hugo v0.153.1-8e6cac8462d210f611154068eaa24c4461357653+extended windows/amd64 BuildDate=2025-12-20T15:15:53Z VendorInfo=gohugoio


                  │ EN
──────────────────┼────
 Pages            │ 51
 Paginator pages  │  0
 Non-page files   │  0
 Static files     │  2
 Processed images │ 76
 Aliases          │  1
 Cleaned          │  0

Built in 942 ms
Environment: "development"
Serving pages from disk
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)

@irkode I can reproduce on Ubuntu and Windows 11. You need to build the site twice to trigger the problem as originally reported.

mmh strange, I build it multiple times in various combinations hugo , hugo server

no errors

is that more than browsing to http://localhost:1313/ and refresh or force refresh?

I just build the site twice in succession, as originally reported.

I’ll give it a retry tomorrow…there must be something …different :thinking:

got it, I did hugo (0.152.2) one time before
after that all subsequent runs for 0.153.1 where successful.

deleting the resources folder and calling hugo twice reproduces the error