No description
Find a file
2026-05-24 16:24:19 +02:00
.github/workflows build: bundle dependencies and ship pre-built dist 2026-04-27 21:38:11 +02:00
dist fix: bundle JS deps while excluding native modules from bundling 2026-04-27 22:26:44 +02:00
src refactor: rename LocalQuartzPluginData to SocialImageFileData and export it 2026-04-16 15:45:18 +02:00
test refactor: rename LocalQuartzPluginData to SocialImageFileData and export it 2026-04-16 15:45:18 +02:00
types chore: centralize type declarations and standardize tooling config 2026-03-16 18:55:26 +01:00
.eslintrc.json chore: centralize type declarations and standardize tooling config 2026-03-16 18:55:26 +01:00
.gitignore chore: commit dist/ and remove prepare script 2026-03-14 22:00:34 +01:00
.prettierignore chore: centralize type declarations and standardize tooling config 2026-03-16 18:55:26 +01:00
.prettierrc Initial commit 2026-02-13 23:35:47 +01:00
CHANGELOG.md Initial commit 2026-02-13 23:35:47 +01:00
LICENSE Initial commit 2026-02-13 23:35:47 +01:00
package-lock.json deps: update @quartz-community/utils 2026-04-22 18:18:42 +02:00
package.json chore: remove vestigial @jackyzha0/quartz peerDependency 2026-05-24 16:24:19 +02:00
README.md docs: update README for v5 unified config system 2026-02-25 16:07:11 +01:00
tsconfig.json Implement og-image emitter plugin 2026-02-13 23:53:16 +01:00
tsup.config.ts fix: bundle JS deps while excluding native modules from bundling 2026-04-27 22:26:44 +02:00
vitest.config.ts fix: add passWithNoTests to vitest config 2026-03-09 03:21:30 +01:00

@quartz-community/og-image

Generates Open Graph social preview images for each page using Satori and Sharp.

Installation

npx quartz plugin add github:quartz-community/og-image

Usage

plugins:
  - source: github:quartz-community/og-image
    enabled: true

For advanced use cases, you can override in TypeScript:

import * as ExternalPlugin from "./.quartz/plugins";

ExternalPlugin.CustomOgImages({
  colorScheme: "lightMode",
  width: 1200,
  height: 630,
});

Configuration

Option Type Default Description
colorScheme "lightMode" | "darkMode" "lightMode" The color scheme to use for the generated images.
width number 1200 The width of the generated images.
height number 630 The height of the generated images.
excludeRoot boolean false Whether to exclude the root page from image generation.
defaultTitle string "Untitled" The default title to use if a page has no title.
defaultDescription string "No description provided" The default description to use if a page has no description.
readingTimeText (minutes: number) => string undefined A function to format the reading time text.
imageStructure function undefined A function to define the structure of the generated image.

Documentation

See the Quartz documentation for more information.

License

MIT