# creating-share-images
> Create OpenGraph and Twitter share images for Next.js applications using next/og ImageResponse. Generates dynamic social preview cards with gradients, SVG icons, and proper dimensions. Use when building OG images, Twitter cards, social previews, meta images, or share images for webapps.
- Author: greenforestpath
- Repository: greenforestpath/meta_skill
- Version: 20260126131710
- Stars: 0
- Forks: 0
- Last Updated: 2026-02-06
- Source: https://github.com/greenforestpath/meta_skill
- Web: https://mule.run/skillshub/@@greenforestpath/meta_skill~creating-share-images:20260126131710
---
---
name: creating-share-images
description: >-
Create OpenGraph and Twitter share images for Next.js applications using
next/og ImageResponse. Generates dynamic social preview cards with gradients,
SVG icons, and proper dimensions. Use when building OG images, Twitter cards,
social previews, meta images, or share images for webapps.
---
# Creating Share Images for Next.js
Generate dynamic OpenGraph (1200x630) and Twitter (1200x600) images using `next/og` ImageResponse.
## Quick Start
Create `app/opengraph-image.tsx`:
```tsx
import { ImageResponse } from "next/og";
export const runtime = "edge";
export const alt = "Page Title - Site Description";
export const size = { width: 1200, height: 630 };
export const contentType = "image/png";
export default async function Image() {
return new ImageResponse(
(