{"record":{"id":"beddc3c67a312989","repo":"remotion-dev/remotion","slug":"config-setimageformat-has-been-renamed-use-con","errorCode":null,"errorMessage":"Config.setImageFormat() has been renamed - use Config.setVideoImageFormat() instead (default \"jpeg\"). For rendering stills, use Config.setStillImageFormat() (default \"png\")","messagePattern":"Config\\.setImageFormat\\(\\) has been renamed - use Config\\.setVideoImageFormat\\(\\) instead \\(default \"jpeg\"\\)\\. For rendering stills, use Config\\.setStillImageFormat\\(\\) \\(default \"png\"\\)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/config/index.ts","lineNumber":801,"sourceCode":"\tsetTimeoutInMilliseconds: delayRenderTimeoutInMillisecondsOption.setConfig,\n\tsetDelayRenderTimeoutInMilliseconds:\n\t\tdelayRenderTimeoutInMillisecondsOption.setConfig,\n\tsetChromiumDisableWebSecurity: disableWebSecurityOption.setConfig,\n\tsetChromiumIgnoreCertificateErrors: ignoreCertificateErrorsOption.setConfig,\n\tsetChromiumHeadlessMode: headlessOption.setConfig,\n\tsetChromiumOpenGlRenderer: glOption.setConfig,\n\tsetChromiumUserAgent: userAgentOption.setConfig,\n\tsetDotEnvLocation: envFileOption.setConfig,\n\tsetConcurrency: concurrencyOption.setConfig,\n\tsetChromiumMultiProcessOnLinux: enableMultiprocessOnLinuxOption.setConfig,\n\tsetChromiumDarkMode: darkModeOption.setConfig,\n\tsetQuality: () => {\n\t\tthrow new Error(\n\t\t\t'setQuality() has been renamed - use setJpegQuality() instead.',\n\t\t);\n\t},\n\tsetImageFormat: () => {\n\t\tthrow new Error(\n\t\t\t'Config.setImageFormat() has been renamed - use Config.setVideoImageFormat() instead (default \"jpeg\"). For rendering stills, use Config.setStillImageFormat() (default \"png\")',\n\t\t);\n\t},\n\tsetJpegQuality: jpegQualityOption.setConfig,\n\tsetStillImageFormat: stillImageFormatOption.setConfig,\n\tsetVideoImageFormat: videoImageFormatOption.setConfig,\n\tsetMetadata,\n\tsetEncodingMaxRate: encodingMaxRateOption.setConfig,\n\tsetEncodingBufferSize: encodingBufferSizeOption.setConfig,\n\tsetFrameRange: framesOption.setConfig,\n\tsetScale: scaleOption.setConfig,\n\tsetEveryNthFrame: everyNthFrameOption.setConfig,\n\tsetNumberOfGifLoops: numberOfGifLoopsOption.setConfig,\n\tsetMuted: mutedOption.setConfig,\n\tsetEnforceAudioTrack: enforceAudioOption.setConfig,\n\tsetOutputLocation,\n\tsetOverwriteOutput: overwriteOption.setConfig,\n\tsetChromeMode: chromeModeOption.setConfig,","sourceCodeStart":783,"sourceCodeEnd":819,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/cli/src/config/index.ts#L783-L819","documentation":"`Config.setImageFormat()` was ambiguous (used for both video and stills) and was split into `Config.setVideoImageFormat()` (default `jpeg`) and `Config.setStillImageFormat()` (default `png`). The old name still exists on `Config` but throws to drive callers to the correct replacement.","triggerScenarios":"Calling `Config.setImageFormat('jpeg')` in a remotion config file. The throw fires at call time.","commonSituations":"Pre-split config file from an older Remotion; tutorial that pre-dates the rename; automated codemod that missed this setter.","solutions":["If you mean the per-frame video image format, use `Config.setVideoImageFormat('jpeg')`.","If you mean the still image format (for `remotion still`), use `Config.setStillImageFormat('png')`."],"exampleFix":"// before\nConfig.setImageFormat('jpeg');\n// after\nConfig.setVideoImageFormat('jpeg');\n// (or Config.setStillImageFormat('png') for stills)","handlingStrategy":"validation","validationCode":"const src = readFileSync('remotion.config.ts', 'utf8');\nif (/Config\\.setImageFormat\\(/.test(src)) {\n  throw new Error('Replace Config.setImageFormat() with setVideoImageFormat()/setStillImageFormat().');\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Decide up front whether a given config affects video or stills and route to the right setter.","Add a CI grep test for removed setter names."],"tags":["config","migration","breaking-change","deprecation","image-format"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}