Color correction
Grade a picture or clip with colorCorrection(), levels(), curves() and lut(), or with the engine's own colorGrade and lut effects.
Pass colorCorrection(), levels(), curves() or lut() from @remotion/effects in the effects array of a picture or clip. The engine draws them on the GPU.
import { Img, staticFile } from '@kinetographdev/core';
import { colorCorrection } from '@remotion/effects/color-correction';
export const Graded = () => (
<Img
src={staticFile('images/photo.jpg')}
style={{ width: 1280 }}
effects={[colorCorrection({ exposure: 0.3, contrast: 1.2, saturation: 1.3, temperature: 0.2 })]}
/>
);
Install @remotion/effects at the same version as remotion. See Remotion effects.
colorCorrection() is the all-in-one adjustment, levels() sets black point, white point and gamma, curves() bends the tone with points from [0, 0] to [1, 1], and lut() grades through a .cube lookup table. Effects run in the order of the array, so correct the colour first, then apply the look:
const effects = [colorCorrection({ exposure: 0.2, temperature: 0.1 }), lut({ content: look })];The engine's own grade
Kinetograph also has two native effects that work on any layer, with no extra package:
import { Image, colorGrade, lut, staticFile } from '@kinetographdev/core';
export const Native = () => (
<Image
src={staticFile('images/photo.jpg')}
width={1280}
height={720}
effects={[
colorGrade({ adjust: { exposure: 0.2, contrast: 0.1 }, curves: { master: [[0, 0], [0.5, 0.4], [1, 1]] } }),
lut({ src: staticFile('luts/warm.cube'), amount: 0.8 }),
]}
/>
);
lut({ src, amount })reads a.cubefile.amount(0 to 1) cross-fades from the original.colorGradetakesadjust(exposure,contrast,temperature,saturationand more), colourwheels,curves, alut, avignetteandgrain.gradientMapcolours a layer by brightness, as in a thermal camera.
Studio
Studio has no sliders, histogram, curve editor or LUT drop for these yet. Set them in code, or ask the agent.
/kinetograph-markupGrade the photo warmer with a little more contrast, then apply luts/warm.cube at 80%. Show frame 0 before and after.
What works
- Drawn natively:
colorCorrection,levels,curvesandlutfrom@remotion/effects(all supported, measured against Remotion in Chrome), and the engine'slut,colorGradeandgradientMap. - HyperFrames:
data-color-gradingon<video>,<img>and<canvas>runs the whole HyperFrames grade. A missing.cubedrops thelutand says so. - Approximated: a video with no named colour space is read with a different matrix from Chrome's.
- Not supported: grading in Studio, as above.
- See What works and Remotion effects.