For anyone else using Hugo that would like to use files in the static directory as resources, to do things like produce images thumbnails, you can “mount” the static directory within the resource directory using Hugo modules. This blog post documents how. Did it myself and it worked a treat.