add conclusion
Deploy Website / build (push) Successful in 21s
Details
Deploy Website / build (push) Successful in 21s
Details
This commit is contained in:
parent
ed96e053e7
commit
3dff480375
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue