Giacomo Balli profile picture
Giacomo Balli
The Second Opinion

For owners and CEOs about to spend serious money on software, AI, an app, or a vendor.
An independent answer before the money moves.

Bring Me the Decision LinkedIn

Automatically Generate Social Share Images for Blog Posts

Are you tired of creating a card image for every blog post you publish?
Here is a way to automatically generate a social sharing card image for all your pages.

Preview

Customization

There are many elements that can be customized and styled as you desire. All are optional except for txt.
Color can be a hex value or any of black, blue, brown, green, orange, pink, red, white, and yellow.
Here is the full list:

  • txt: The text content of the card.
  • bgColor: The solid color applied as card background.
  • bgUrl: A background image to be used int he card.
  • fontColor: The color of the text.
  • shadowColor: The color of the text shadow.
  • source: The text to be displayed in the lower right corner as attribution.
  • logo: An image to be placed in the top right corner.
Then simply use the final URL such as:
https://bigballi.com/makeCardImage.php?txt=Hello&fontColor=white&bgColor=brown

Testing

Want to easily try it out before implementing? Here you go!

txt
bgColor
bgUrl
fontColor
shadowColor
source
logo



Published: Sun, Apr 25 2021 @ 8:56:14
Back to Blog