Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

288
Views
How can i render an async image into my twitter card (twitter:image)

Hey guys i just had an question which i haven't found on the internet.

So basically i am making an twitter card, but the problem here is that the image generator is async. It generates the image by giving numbers or string.

So the code will be something like this:

<meta
  name="twitter:image"
  content={`https://image-generator/${some_string_or_number_in_here}.png`}
 />

But when i try to make it as twitter card it does not work. Doesn't either show up or it shows an default image.

I know twitter card expects an direct link which already exists, but this one is an node app which generates png's for you.

Any suggestions guys how i can fix this ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Please try this

 let _desc = `https://image-generator/${some_string_or_number_in_here}.png`;
document.querySelector('meta[name="twitter:image"]').setAttribute("content", _desc);
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!