{"record":{"id":"1a227038348c5675","repo":"remotion-dev/remotion","slug":"setquality-has-been-renamed-use-setjpegquality","errorCode":null,"errorMessage":"setQuality() has been renamed - use setJpegQuality() instead.","messagePattern":"setQuality\\(\\) has been renamed - use setJpegQuality\\(\\) instead\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/config/index.ts","lineNumber":796,"sourceCode":"\tsetPublicDir: publicDirOption.setConfig,\n\tsetEntryPoint,\n\tsetLogLevel: logLevelOption.setConfig,\n\tsetLevel: logLevelOption.setConfig,\n\tsetBrowserExecutable: browserExecutableOption.setConfig,\n\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,","sourceCodeStart":778,"sourceCodeEnd":814,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/cli/src/config/index.ts#L778-L814","documentation":"`Config.setQuality()` was renamed to `Config.setJpegQuality()` to make its scope explicit (JPEG quality only). The old name still exists on `Config` but its body throws so un-migrated config files fail with a clear message instead of silently changing behavior.","triggerScenarios":"Calling `Config.setQuality(80)` (or any value) in a remotion config file. The throw happens at call time, regardless of argument.","commonSituations":"Long-lived config file from before the rename; copied snippet from older docs; IDE autocomplete offering the old name from cached types.","solutions":["Rename the call to `Config.setJpegQuality(80)`.","Confirm the value is in the valid JPEG quality range (1-100)."],"exampleFix":"// before\nConfig.setQuality(80);\n// after\nConfig.setJpegQuality(80);","handlingStrategy":"validation","validationCode":"const src = readFileSync('remotion.config.ts', 'utf8');\nif (/Config\\.setQuality\\(/.test(src)) {\n  throw new Error('Rename Config.setQuality() to Config.setJpegQuality().');\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["After a major upgrade, grep for `Config.set` and confirm every name still exists.","Use the IDE go-to-definition against installed types, not cached ones."],"tags":["config","migration","breaking-change","deprecation","image-quality"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}