From 3dff480375a9094b01550694e1d167f24d6b80d1 Mon Sep 17 00:00:00 2001 From: James Ravenscroft Date: Tue, 29 Oct 2024 08:42:43 +0000 Subject: [PATCH] add conclusion --- brainsteam/content/posts/2024/10/cardy-bee.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/brainsteam/content/posts/2024/10/cardy-bee.md b/brainsteam/content/posts/2024/10/cardy-bee.md index f5a968c..45719be 100644 --- a/brainsteam/content/posts/2024/10/cardy-bee.md +++ b/brainsteam/content/posts/2024/10/cardy-bee.md @@ -1,5 +1,5 @@ --- -title: "Generating (Non-AI) Social Images with Python and Hugo" +title: "Generating (Non-AI) Social Images with Python (Cardy 🐝) and Hugo" date: 2024-10-29T08:37:07Z draft: false description: A short post explaining how I use a Python script to generate (non-ai) social preview images for my site @@ -83,3 +83,7 @@ By default cardy-🐝 will store the image name in the hugo post frontmatter und ## Could I have done this more efficiently? For sure, I mean anything that requires you to run headless-chrome is not exactly going to be lightweight. I noticed that [this post](https://runtimeterror.dev/dynamic-opengraph-images-with-hugo/) uses Hugo's built in image manipulation features to take an image template and overlay some text onto it rather than booting up a whole browser. I went for lowest barrier to entry/quickest win and I'm not too worried about the resource that running this script once every few days when I hit "publish" is going to require. I'll revisit this if it ever does become an issue or if I feel like deep diving on Hugo's image generation stuff. + +## Final Thoughts + +This experiment was pretty quick for me to knock up and I'm pretty happy with the results. I've made the script available to others just in case it is useful but I'm not sure how useful it will be. You might be better off forking it and tailoring it to your needs or just using it as inspiration. Apologies for the name, I am a big fan of dad jokes, what can I say?