packages/docs/docs/vercel/render-still-on-vercel.mdx
:::warning Experimental package: We reserve the right to make breaking changes in order to correct bad design decisions until this notice is gone. :::
Renders a still image inside a Vercel Sandbox.
The rendered file stays inside the sandbox. Use uploadToVercelBlob() to upload it to Vercel Blob.
// @module: es2022
// @target: es2022
import {renderStillOnVercel, addBundleToSandbox, createSandbox} from '@remotion/vercel';
const sandbox = await createSandbox();
// ---cut---
const {sandboxFilePath} = await renderStillOnVercel({
sandbox,
compositionId: 'MyComp',
inputProps: {title: 'Hello World'},
imageFormat: 'png',
});
An object with the following properties:
sandboxA Sandbox instance.
compositionIdThe ID of the Remotion composition to render.
inputPropsProps to pass to the composition.
imageFormat?outputFile?The output file path inside the sandbox. Default: "/tmp/still.png".
frame?jpegQuality?envVariables?An object containing key-value pairs of environment variables which will be injected into your Remotion project and which can be accessed by reading the global process.env object. Default: {}.
chromiumOptions?Allows you to set certain Chromium / Google Chrome flags. See: Chromium flags.
scale?logLevel?timeoutInMilliseconds?offthreadVideoCacheSizeInBytes?mediaCacheSizeInBytes?offthreadVideoThreads?licenseKey?onProgress?function <TsType type="RenderStillOnVercelProgress" source="@remotion/vercel" href="/docs/vercel/types#renderstillonvercelprogress" />
A callback that receives render progress updates. Every variant includes overallProgress (0–1).
An object containing:
sandboxFilePathThe path to the rendered still image inside the sandbox.
contentTypeThe MIME type of the rendered output (e.g. "image/png", "image/jpeg", "image/webp").