Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic OG Image Generation Tutorial #18384

Open
wants to merge 13 commits into
base: production
Choose a base branch
from

Conversation

mohdlatif
Copy link

@mohdlatif mohdlatif commented Nov 25, 2024

Add Dynamic OG Image Generation Tutorial

Summary

This PR adds a new tutorial that guides users through creating a dynamic Open Graph (OG) image generator using Cloudflare Workers. The tutorial covers:

  • Setting up a Cloudflare Worker with TypeScript and React
  • Implementing dynamic image generation using @vercel/og
  • Configuring font loading strategies
  • Adding caching mechanisms
  • Deploying the solution

The tutorial aims to help developers leverage Cloudflare's edge network for fast, scalable social media image generation.

Screenshots

Style 1 Preview

Style 2 Preview

Style 3 Preview

Documentation checklist

  • The documentation style guide has been adhered to
  • Content has been reviewed for technical accuracy
  • Code examples have been tested and verified
  • All images include appropriate alt text
  • Links have been verified and are working

Copy link
Contributor

@hyperlint-ai hyperlint-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 files reviewed, 7 total issue(s) found.

@github-actions github-actions bot added size/l and removed size/xl labels Nov 25, 2024
Copy link
Contributor

@hyperlint-ai hyperlint-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 files reviewed, 6 total issue(s) found.

@mohdlatif mohdlatif changed the title First Blog Draft Dynamic OG Image Generation Tutorial Nov 25, 2024
mohdlatif and others added 6 commits November 25, 2024 17:26
…using Cloudflare Workers/index.mdx


Replacing ’ with '

Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com>
…using Cloudflare Workers/index.mdx


Replacing ’ with '

Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com>
…using Cloudflare Workers/index.mdx


Replacing ’ with '

Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com>
…using Cloudflare Workers/index.mdx


Replacing ’ with '

Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com>
…using Cloudflare Workers/index.mdx


Replacing ’ with '

Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com>
…using Cloudflare Workers/index.mdx


Replacing ’ with '

Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com>
Copy link
Contributor

@db-cloudflare db-cloudflare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some more style guide suggestions. Once the technical review has been completed by a second reviewer this PR should be ready to merge. Great work!

…using Cloudflare Workers/index.mdx


Shouldn't this be started from 1 instead of 3

Co-authored-by: db-cloudflare <125887610+db-cloudflare@users.noreply.github.com>
@db-cloudflare db-cloudflare added the DevRel Tasks that need support from developer relations. label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer-spotlight DevRel Tasks that need support from developer relations. product:workers Related to Workers product size/l
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants