Small update, I published a ResourceFunction for this function here:
https://www.wolframcloud.com/obj/arnoudbuzing/DeployedResources/Function/GenerateImageFromText/
I also submitted this same resource function to the Function Repository (https://resources.wolframcloud.com/FunctionRepository/) so hopefully it will show up there too.
ChatGPT explanation of the Function Repository:
"The Wolfram Function Repository is a collection of user-contributed functions for the Wolfram Language. These functions can be used to perform a wide variety of tasks, such as data visualization, image processing, and mathematical computation. The repository is intended to be a resource for the Wolfram Language community, allowing users to share and find useful functions created by others."