Skip to content

ogygia warning

image_no_encoder

this server cannot make image files: the encoder (sharp) did not load (‹reason›); image requests answer 500.

With sharp(), the default encoder, image files are made by sharp, a native Node module. A runtime without it (an edge or Workers runtime, an install that skipped sharp's binary) cannot make them. On Cloudflare Workers, list the encoder that can: image({ encoder: cloudflare() }) from @ogygia/image/vite. Otherwise prerender the pages that show images (their files are made at build), warm the presets server-rendered pages use (import.meta.og.image(src, { warm: 'cover' })), or deploy to a Node server. A share card (import.meta.og.image.card()) is drawn by satori and resvg, which run in Node only: on an edge runtime, a page rendered on request serves a card's files only when the build made them, because a prerendered page names the same card with the same props. Prerender the pages that show cards, or deploy to a Node server.

Every error and warning