npm / nuxt-og-image
nuxt-og-image
What changed in nuxt-og-image 3 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
91 breaking15 security2 deprecations55 new APIs and options4 performance42 behavior and defaults6 tooling113 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initnuxt-og-image 755 changes
Breaking changes 25
V7 no longer installs chrome-launcher; browser-renderer users with a local Chrome must add it as a dev dependency.
V7 removes support for fontless 0.x; remove overrides that pin the package to those versions.
The event parameter now takes Nuxt's portable RequestEvent.
Update local, CI, and deployment environments to Node.js ^22.22.3 before installing v7.
Nuxt 3 and Nuxt 4 versions before 4.6.1 are no longer supported.
V7 requires Nuxt 4.6.1 or Nuxt 5 and Node.js 22.22.3, 24.15.0, or 26.0.0 and later; Nuxt 3 and earlier Nuxt 4 versions are no longer supported.
V7 derives its signing key from Nuxt's private runtimeConfig.appSecret; production runtime requests require a root secret of at least 32 characters when signing is enabled.
Use @nuxt/fonts 1.0.0 or newer; v7 reads fonts through its fonts:resolved hook, and older versions fall back to the bundled Inter font.
Import defineEventHandler and RequestEvent from nuxt/server instead of relying on the auto-imported h3 handler or using H3Event annotations.
Handlers calling getOgImageUrl should import defineEventHandler from nuxt/server.
Install this optional host module to restore the OG Image DevTools panel; the module loads it automatically without adding it to modules.
Remove string values of this old configuration setting and configure the root secret through the environment instead.
String values are no longer supported; security.secret: false still turns off signing.
The browser renderer still requires playwright-core; without it, the build fails and prints the install command.
With the default true value and no Nitro cache mount, storage now uses a bounded 64 MiB memory cache and evicts least recently used images when full.
Remove this old configuration setting; configure the root secret through the environment instead.
String values are no longer supported; use the Nuxt app secret for signing instead.
V7 requires Satori 0.47.1 or later within 0.47.
Satori supports block, inline, flexbox, and grid layout, and the module no longer adds flex styles to elements that omit them.
Text elements no longer get flex wrapping or a 0.2em gap; templates may need explicit sizing, borders, margins, or shrink behavior.
All v6 signed URLs become invalid, so rebuild prerendered pages and purge cached HTML.
Takumi v1 is no longer supported; v7 requires Takumi 2.15.0 or later within v2.
Replace takumi.fetchedResources and takumi.persistentImages with takumi.images, merging entries if both arrays were used.
Text elements use native text and inline layout; the module no longer adds flex wrapping or a synthetic 0.2em gap.
V7 removes support for unifont 0.x; remove overrides that pin the package to those versions.
Security 2
Enforces WOFF allocation bounds when handling fonts.
Commas and plus signs are escaped so a client cannot cut off the signature.
Deprecations 1
V7 accepts this legacy environment key when the application secret is empty and logs a deprecation warning once per runtime; rename it to NUXT_APP_SECRET when convenient.
New APIs and options 5
The helper now accepts Nuxt's portable RequestEvent; pass the current request event so signing can use request-specific bindings.
Generate a secret for setting NUXT_APP_SECRET in the production environment.
Use this explicit import path for app composables; they remain auto-imported.
Configure a Nitro storage mount and base URL to publish rendered images to a public bucket; prerendered og:image tags use the bucket URL.
Set subsets on each family when OG text uses a script outside the default subsets.
Performance 1
Static URL encoding, the component manifest, and URL hashing are no longer included in SSR client builds.
Behavior and default changes 12
Prerendered local images use app.cdnURL when it is set.
Storage drivers now receive a TTL from this setting, with a minimum of 60 seconds.
Without chrome-launcher, development and local builds download Chromium through Playwright on the first render.
The module reads resolved fonts through the fonts:resolved hook; OG images can use every resolved family and weight.
Setting the value to false still disables signing, but it cannot be combined with security.strict: true.
The browser renderer still requires playwright-core; without it, the build fails and prints the install command.
Runtime image requests redirect to a published copy when available; otherwise, the server returns the image and uploads it in the background.
Setting runtimeCacheStorage to false now bypasses storage completely.
Satori converts static WOFF2 files and resolves static alternatives for variable fonts.
Templates use Satori's native block, inline, flexbox, and grid layout, and the module passes translate, rotate, scale, inset, z-index, and backdrop utilities to Satori.
Takumi loads OTF and WOFF files as well as TTF and WOFF2.
The module now passes translate, rotate, scale, and inset through to Satori, which applies them natively.
Fixes and other changes 9
Asset checks are tightened.
Route rules use Nuxt server primitives.
Truncated font binaries are now rejected.
Static fonts that og-image downloads now ship as TTF files instead of WOFF files, which Takumi's Wasm build rejects.
The prerender plugin is bundled only when prerendering.
Stops false CSS variable warnings in dev.
DevTools font previews now respect app.baseURL.
Publishing storage lookups now use the render timeout.
The module now preserves z-index and backdrop utilities that earlier versions filtered out.
nuxt-og-image 6201 changes
Breaking changes 35
Unavailable zero-runtime images now return 404.
The build now fails on silent OG image misconfiguration, making configuration problems harder to miss.
Page screenshots now require explicit opt-in.
Requires the Nitro runtime config secret in types.
Og image URLs are signed by default.
Automatic SWR route rules are no longer set; only cache-control headers are set.
Build ID cache bursting via a query parameter is dropped.
Migrate defineOgImage({ url }) to useSeoMeta.
Use
browser: 'playwright'instead of the removed deprecatedbrowser: 'node'compatibility option.The chromium renderer is renamed browser, and Cloudflare support is added.
Use browser instead of chromium as the runtime compatibility key for the Playwright renderer.
Query parameters are no longer included in cache keys, so URLs that differ only by query parameters share the same cached image.
The
chromiumrenderer name was renamed tobrowser; update component suffixes and configuration.Community templates are no longer bundled with production builds; eject templates you use before building.
Component support is dropped.
The
ogImage.componentOptionsconfig option was removed because there are no longer any components to configure.css-inline support is dropped.
Build-time CSS processing replaces the UnoCSS runtime transformer; Tailwind v4, UnoCSS, CSS variables, and Nuxt UI v3 colors work by default.
The
defaults.rendererconfig option was removed; the component filename suffix determines the renderer.Now returns an array of generated paths, which can be used instead of hardcoded OG image URLs.
Use this composable in place of the removed OgImageScreenshot component.
Set global: true on a @nuxt/fonts family to make that font available in OG Image rendering.
Replaces PostCSS with lightningcss for CSS processing.
Nuxt Content v2 is no longer supported; upgrade to v3 or later and use
defineOgImage()in page components instead of automatic v2 frontmatter handling.Custom fonts now use @nuxt/fonts instead of the legacy ogImage.fonts config; set global: true for fonts to be available during OG Image rendering.
OG Image component filenames must include a renderer suffix, such as
.satori.vue,.takumi.vue, or.browser.vue.OG Image URLs were shortened and restructured; update hardcoded URLs to the new paths and encoding format.
The font configuration option was removed; use
@nuxt/fontsfor custom fonts, while Inter is bundled as a fallback.Query parameter overrides work only in development and prerender modes; pass dynamic values with
defineOgImageprops instead.Renderer dependencies are no longer bundled; install the dependencies explicitly for the renderer and runtime you use.
The satori-html requirement is dropped.
The edge integration initially requires satori 0.15.x; another note says the edge version restriction is removed.
If Sharp fails to load for JPEG rendering, the module now throws an error instead of logging an error and silently falling back to PNG.
This deprecated option was removed and has no effect in Nuxt Content v3.
Import this function from
#og-image/app/utils; the deprecated stub export from#og-image/sharedwas removed.
Security 13
Nuxt OG Image has unauthenticated SSRF via
fonts[].pathURL parameterBlocks embedded-IPv4 IPv6 bypasses.
Fixes runtime secret override via NUXT_OG_IMAGE_SECRET.
Hardens the SSRF guard with redirect validation and IPv6 coverage.
The
htmloption is deprecated as part of a security-related change.Adds strict mode as a security-related change.
Adds URL signing to prevent parameter tampering.
Whitelists component props to prevent cache key DoS.
Nuxt OG Image is vulnerable to Denial of Service via unbounded image dimensions
Nuxt OG Image is vulnerable to reflected XSS via query parameter injection into HTML attributes
Nuxt OG Image vulnerable to Server-Side Request Forgery via user-controlled parameters
Hardens security defaults.
Takumi evaluates CSS more safely.
Deprecations 1
getOgImagePath is re-exported as deprecated.
New APIs and options 26
An agent skill is shipped in the package for developers to use.
Exposes getOgImageUrl for server handlers.
Adds an option to disable automatic Twitter tags.
Lets the bundler filter the build plugins.
Takumi v2 compatibility is supported.
Adds a resolver endpoint at /_og/r/<path>.
Adds the defineOgImageSchema() composable.
Adds a CLI create command with DX improvements.
Adds a CLI switch command with DX improvements.
The redesigned OG image DevTools add Bluesky social card support.
Configure the Cloudflare Browser Rendering binding with
ogImage.browser.binding.Set
ogImage.browser.providertocloudflareto use Cloudflare Browser Rendering for runtime screenshots on Workers or Pages.This new option controls cache key namespacing; setting it to
falsedisables versioning.Takumi supports container query units, including cq*, dv*, and lv* units.
Define multiple images per page using size variants; shared props are passed once, and per-variant props can override them.
An alternative array syntax lets you pass options inline for each image variant.
Component names are passed as the first argument; renderer-specific variants can be selected with dot notation or PascalCase.
Emoji support can be disabled, avoiding a 24MB bundle.
Satori supports the arbitrary-value gap class gap-[2rem].
Extracts global variables from CSS entries.
Emoji sources can be local.
A component can have renderer-specific variants; select a specific variant with dot notation or PascalCase, otherwise the first registered variant is used.
Ejects community templates into the project's components directory so they are included in production builds.
Set this environment variable to opt out of onboarding entirely.
OG Image templates support UnoCSS out of the box, including class resolution.
Adds support for UnoCSS variants.
Performance 1
Font requirements are detected at build time for optimized loading.
Behavior and default changes 21
nuxt-ui token resolution now accounts for color mode via data-theme.
Title and description from useSeoMeta are automatically injected into OG image props.
Variable font weights are expanded for all renderers.
Support node cluster.
Takumi gains Cloudflare compatibility.
OG Image templates can use the app's CSS custom properties directly without configuration.
Satori supports dark mode Tailwind classes.
Font handling now supports dynamic weights.
Changes how Takumi handles emoji.
Fetch errors are exposed to developers.
Satori converts gap utility classes.
Warns when CSS variables are missing.
OG Image templates support nested Vue components.
The module integrates with
@nuxt/fontsso installed custom fonts work in OG images without extra OG Image configuration.Nuxt UI v3 semantic colors such as primary and secondary are automatically resolved in OG Image templates.
Prerendering uses deterministic hash URLs for overly long encoded paths or paths containing unsupported characters; hash mode URLs are not supported at runtime.
Supports downgrading radial gradients at runtime.
Tailwind v4 works out of the box with build-time class extraction and Tailwind's CSS engine; @theme values are supported without configuration.
Takumi supports .webp output.
The Takumi renderer supports Devanagari and non-Latin fonts.
Adds Satori WASM binding, a process proxy patch, and wasm ?module imports for Vercel Edge.
Tooling 5
Devtools are shipped as a layer.
Devtools can create a component from the empty state.
Devtools adds a toggle for previewing production output.
Improves HMR for CSS files, making CSS changes update during development.
Migrates components and API calls to v6; supports a dry run with --dry-run.
Fixes and other changes 99
Preserves the page status when a resolver is missing.
Fixes browser logging.
Fixes resolution of cached fonts.
OG image URLs are resolved before validation in Nuxt 5.
Ejection now selects the right community variant.
Takumi emoji sizing is corrected.
Static OG paths containing reserved characters are hashed.
Headers are no longer set on a response that has already finished.
Keeps subset family names stable across renders.
Asterisks in OG image URLs are encoded.
Sends refresh broadcasts as events.
Uses the Nitro 3 internal fetch bridge.
Worker render failures are isolated during concurrent prerendering.
Adds support for Nitro 3 runtime imports.
Suppresses the Takumi fallback warning.
Clamps Lightning CSS integer infinity.
Warns when secure signing is disabled, so developers can notice that signing is not secure.
Queries are now parsed from event paths.
Uses the source island hash from Nuxt.
Fixed icon colors not inheriting in takumi.
Adds support for takumi v2 rc.
The WebP warning is scoped to the satori renderer only.
Uses the SFC parser to find the bounds of the outer
<template>.Escapes double quotes when inlining
<style>rules into astyleattribute.Degrades gracefully when the cache backend is unreachable.
Resolves the #og-image alias when no subpath is given.
Skips the renderer prompt in non-interactive environments.
Skips the runtime buffer cache during prerender.
Declares zod as an optional peer dependency for content.
Fixes island validation for Nuxt 4.4.6.
Fontaine fallbacks are skipped.
Single-entry variable fonts are treated as axis-driven.
Variable WOFF2 fonts are kept instead of using per-weight static fallbacks.
Configured local fonts are now resolved for OG images.
Resolves an issue with the OG image secret in the Cloudflare runtime.
Font warnings are more helpful, making font-related issues easier to diagnose.
Expands Server-Timing instrumentation.
Restores non-Latin glyph support in takumi, which had regressed in v6.2.0.
Variable fonts are deduplicated so their weights vary correctly.
Fixed iMessage Preview displaying multiple images.
Serializes WASM calls in takumi.
Fixes safe broadcasting in devtools.
Image fetching now has timeouts.
The prior og:image head entry is disposed on client navigation.
Server-Timing instrumentation is added.
Support @unhead/vue v3.
Updates og:image on client-side navigation.
Prevents the useHead title from leaking into the og:image URL.
Falls back to the internal handler when the font origin is unreachable.
Miscellaneous cache improvements may improve caching behavior.
Object literal bindings for :style are resolved to inline CSS.
Fixed a compatibility issue with the HTML validator during prerendering.
Fixes edge cases in option caching during prerender.
Prerendering now signs dynamic URLs in strict mode and handles orphan hashes.
Adds missing Nitro presets to the compatibility map, improving compatibility for projects using those presets.
CJK rendering now falls back across unicode-range font subsets.
When zeroRuntime is true, the Takumi no-bundler path prevents the binary from being included.
Secrets are now preferred from runtime config.
Devtools no longer warns about devtool props.
Sanitizes component props.
Fixes a hydration-issue warning caused by an SSR-generated DateTime value.
The cache is burst when OG image templates change.
Cloudflare now detects legacy assets mode.
Fixes missing compatibility configuration.
Fixes broken devtools resolution.
Resolves fonts via localFetch when the ASSETS binding is unavailable.
Base64-encodes props containing URL-sensitive characters.
Fixes broken slash decoding in some cases.
NuxtHub KV is now auto-detected for cache storage, so developers do not need to configure it manually.
Uses safe module resolution to prevent throws when plugins cannot be resolved.
Missing option keys are now included in URL encoding and prop separation.
Non-ASCII values in URL path parameters are Base64-encoded.
The header is deferred to prevent stale hash URLs during prerender.
Recovers compatibility with the v5 defineOgImage syntax.
Avoids truncating parameters that were pre-decoded.
Detects font families from computed properties in script setup.
Devtools preview scaling uses the actual content width.
Fixes broken Windows path resolutions.
Prevents a crash when defineOgImage runs client-side during layout transitions.
Uses real font family names so font-weight matching works correctly.
Null bindings are no longer mocked.
Font casing is normalized, addressing issues with inconsistent casing.
SVG dimensions now resolve properly in runtime instances.
Improves CSS variable matching in Satori.
Fixes font weight matching in Takumi.
Fixes attribute ordering when converting HTML to nodes in Takumi.
Fixes a broken migration warning, helping developers receive the intended migration guidance.
Satori now infers SVG dimensions from the parent.
Fixes an encoding bug affecting array text children.
Clamps extreme values that could cause hanging.
Fixes HTML parsing in Takumi.
Improves stability for image, SVG, and CSS handling in Takumi.
Passes through attributes that were previously missing.
Error messages are improved for missing or invalid OG image types.
Images default to PNG when the extension is missing.
Fixes broken template path resolution, including when ejecting a modal.
Fixes broken text ellipsis overflow handling.
Takumi runs in an isolated web worker to avoid crashing the dev server.
Handles worker thread hangs.
nuxt-og-image 54 changes
Breaking changes 2
Nuxt OG Image v5 requires Nuxt v3.16; upgrade Nuxt to continue using OG Image.
Nuxt OG Image v5 requires unhead v2.
Behavior and default changes 1
The content integration now prefers the user's zod version.
Fixes and other changes 1
Handle _query in og-image without breaking the render path.
nuxt-og-image 41 changes
Behavior and default changes 1
Adds support for Nuxt SEO v2 stable.
nuxt-og-image 367 changes
Breaking changes 29
Animations are disabled by default.
The cacheTtl option is renamed to cacheMaxAgeSeconds; cache, cacheKey, and static are removed.
css-inline is disabled by default in StackBlitz.
This composable is removed.
This composable is removed.
The default emoji family changes to noto.
Emoji rendering switches from twemoji to the Iconify API, providing access to additional emoji families.
Satori always strips inline and inline-block styles.
Inlining CSS now requires explicit opt-in rather than occurring by default.
Browser-based rendering now renders JPEG images by default; Satori rendering can use JPEG by installing sharp and switching the extension.
Passing non-typed keys is no longer supported; provide props under props or use defineOgImageComponent.
When generating the app, the module no longer bundles Satori or Playwright dependencies.
The module is disabled when the application uses SPA mode.
The default component was renamed; update uses of its former name.
This hook is removed.
This Nuxt hook is no longer supported.
Generated OG images change from 1200x630 to 1200x600 for better compatibility with other social platforms.
The remaining component is no longer global; Nuxt Content users can set componentOptions to use it.
This component is removed.
This component is removed.
This component is removed.
The Nuxt config option is removed; enabling Nuxt DevTools always enables the playground.
The provider option is renamed to renderer.
This Nuxt config option is removed.
The
runtimeBrowsername was changed toruntimeChromium; update configuration that uses the old name.This Nuxt config option is removed.
Screenshot image output defaults to PNG; JPEG rendering requires explicit opt-in.
Prerendering now asserts that
site.urlis set.The deprecated module config was dropped; remove its use from your configuration.
New APIs and options 24
Runtime image caching is simplified to this prop, which defaults to 259200 seconds; setting it to 0 disables caching.
Set global to true to use OgImage and OgImageScreenshot with Nuxt Content.
Custom source folders are supported.
The
defaults.urloption is supported.Passing
falseopts out of the description.A fonts prop lets a template use custom fonts without loading those fonts for all templates.
The composable accepts raw HTML so developers can create a simple OG image without creating a component.
Passing
falseopts out of the title.A url can reference a pre-existing OG image and have the tags set up for it.
Passing false disables OG image generation and removes all OG image tags.
Defines an OG image configuration with type safety derived from the component being used.
Nuxt OG Image now integrates with
@nuxt/content.Nuxt OG Image now supports
@nuxt/icon.The default template adds colorMode values light and dark, integrating with @nuxtjs/color-mode to select the default color mode.
The default template adds a theme prop for changing the hex color of the flare and Nuxt SEO logo.
Prerendered images are served from this route.
Nuxt Content supports an ogImage frontmatter key for configuring an image in Document Driven mode or when a path is set.
Use
resvgOptionsto modify the resvg configuration.Route rules can provide an ogImage key that is used or merged into existing OG Image options.
The module can use
SERVER_PRESETto detect the environment.A
strictNuxtContentPathsconfig option is available.SWR caching is supported, with cache headers handled by the module.
Unocss can inline Tailwind classes, with support for extending its configuration.
A Zero Runtime mode is available.
Performance 2
All transforms are processed in parallel.
Strips tree-shakable OG image generation code from the final build for prerendered images, reducing server bundle and node_modules size.
Behavior and default changes 7
With the dependency installed when prompted, style blocks can be processed in more environments through its Wasm support; Cloudflare support is still pending.
Computed getters and ref props are supported.
All images can now be prerendered through Nitro.
The default template is renamed to NuxtSeo and receives a more modern design focused on readability.
Support for sharp is experimental and requires explicit opt-in; sharp can also be disabled with
sharpOptions.disabled.Stale-While-Revalidate is enabled by default, and caching correctly responds with 304 Not Modified codes.
The module runs UnoCSS preset-wind with the Tailwind or UnoCSS theme config before Satori, converting classes to inline CSS.
Tooling 1
The redesigned playground adds template previews and debugging, social media previews, rendering selection, and community templates.
Fixes and other changes 4
Route-rule merging was improved and
falseis now accepted as input.Image buffer resolving is improved.
Fixes text being invisible in the Nuxt SEO template when dark mode is enabled.
UnoCSS converts rgb(r b g / opacity) colors to rgba.