ValyroUI Русская версия

Image Adjustments

Color grading: upload, fit and seven filter sliders. Pro · Image generation › Results and editing

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add image-adjustments
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { ImageAdjustments } from 'valyro-ui-pro';

Props

PropTypeDefault
valueAdjustmentsSlider positions (controlled).
defaultValueAdjustmentsInitial value when uncontrolled.
onValueChange(value: Adjustments) => voidCalled with the new value when it changes.
imagestringImage URL (controlled); an upload replaces it with an object URL.
defaultImagestringInitial image when uncontrolled.
onImageChange(image: string, file?: File) => voidCalled with the new image when it changes.
fit'cover' | 'contain' | 'fill'How the image fills the preview (controlled).
defaultFit'cover' | 'contain' | 'fill'Initial fit when uncontrolled.
onFitChange(fit: ImageFit) => voidCalled with the new fit when it changes.
acceptstring'image/*'File types the picker accepts. Default image/*.
labelsPartial<ImageAdjustmentsLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Generation History · Next: Node Canvas · All Image generation