Create placeholder images with sharp Node.js image processing library

post, Mar 27, 2020 on Mitja Felicijan's blog

I have been searching for a solution to pre-generate some placeholder images for @@ -69,21 +69,18 @@ buffer you can use to either upload to S3 or save to local file.

background and if you want to change text styling you can adapt SVG
 to your needs.

Also be careful about the length of the text. This function positions text at the center and adds 20px padding on all sides. If text is longer than the -image it will get cut.