Skip to main content
Solved

Create a profile image (as seen in MS Teams) using initials from {firstname} {lastname}

  • February 16, 2022
  • 3 replies
  • 530 views

Forum|alt.badge.img+7

I’m trying to work this one out but I don’t have sufficient coding experience to really crack it.

I’m looking to generate an image into a dedicated field, based on a record’s {firstname} {lastname} fields.

Examples of code to do this are here: javascript - How do I set profile image as first letters of first and last name? - Stack Overflow

Can these easily be turned into a script?

If it isn’t possible to create an image file, generating unique embed codes per record might be just as useful.

Best answer by ScottWorld

I don’t know JavaScript, but if you want to do this in a low-code/no-code way that doesn’t require any scripting at all, then I would just use an image generation service like BannerBear or APITemplate and automate it with Integromat:

3 replies

ScottWorld
Forum|alt.badge.img+35
  • Genius
  • 9815 replies
  • Answer
  • February 16, 2022

I don’t know JavaScript, but if you want to do this in a low-code/no-code way that doesn’t require any scripting at all, then I would just use an image generation service like BannerBear or APITemplate and automate it with Integromat:


Forum|alt.badge.img+7
  • Author
  • Known Participant
  • 14 replies
  • February 16, 2022

This is a massive help. I’ve used Airtable-Zapier-Bannerbear to progress this since your reply. It’s looking good :slightly_smiling_face: Much thanks. @ScottWorld


Justin_Barrett
Forum|alt.badge.img+21
  • Inspiring
  • 4647 replies
  • February 16, 2022

Just throwing another option out there. I love the idea of Bannerbear, but IMO that’s a fairly expensive service if all you need to do is create those badge images. I would probably take the CSS part of the solution that you found on Stack Overflow, build that into a bare-bones HTML string, then use CloudConvert to turn the HTML into a JPG or PNG image. CloudConvert’s fees would probably be far less in the long run compared to Bannerbear, and you can still pull it all together with Integromat’s CloudConvert integration.