Image processing issues with Hugo 131.0

Since updating to Hugo v131.0 from v128.2, I’m having issues with my images not showing. The paths are not updating in my json file for search and using the old pathnames.

And when I revert back to v128.2, the images being generated in resources are the new filenames, but everything else points to the old pathnames.

How do I troubleshoot this? I’ve tried all the different --gc, --ignoreCache, deleting the public and resources folders and regenerating.

There is one significant change in relation to image processing in 0.131.0

I haven’t move into that version yet as need to plan it and test, but changes related to xxHash and shorter file names may impact cached files hence purge of cache, especially on CDN is required.

1 Like

How do you produce this JSON file?

Assuming this file is produced using Hugo’s APIs, I’m having trouble imaging how you can end up with both old and new filenames.

And yes, these filename changes are unfortunate, but this time we needed to do break the hashes to fix a bug, so I thought I might as well also make them prettier/shorter.

2 Likes