Killed on number of images?

Is there a limit to the total number of images in page bundles? I have some 1268 images (1.9GB) in folders in the static folder

However, Hugo crashes at startup:

$ hugo server --disableFastRender --verboseLog
Building sites … Killed

The images are not compressed etc as yet as I am trying to first do a reverse image search to avoid using images that may accidentally be stock images.

Try setting a high timeout value like: timeout = 60000 or more in the project config.

timeout (10000)
Timeout for generating page contents, in milliseconds (defaults to 10 seconds). Note: this is used to bail out of recursive content generation, if your pages are slow to generate (e.g., because they require large image processing or depend on remote contents) you might need to raise this limit.

See: Configure Hugo | Hugo

1 Like

The timeout will not work with images inside /static.

We have an open issue about this particular thing, but your current workaround is to do

hugo server --renderToDisk

1 Like

A belated thank you! You saved my day :slight_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.