Skip to content

Type Alias: BlurRegionOptions ​

ts
type BlurRegionOptions = 
  | {
  height: SizeValue;
  strength?: number;
  width: SizeValue;
  x: SizeValue;
  y: SizeValue;
}
  | {
  faces: true;
  strength?: number;
};

Defined in: ops/effects.ts:267

Options for blurRegion: a rectangle, or all detected faces.

Union Members ​

Type Literal ​

ts
{
  height: SizeValue;
  strength?: number;
  width: SizeValue;
  x: SizeValue;
  y: SizeValue;
}
NameTypeDescriptionDefined in
heightSizeValueRegion height in px or percent.ops/effects.ts:272
strength?numberBlur strength, 0..5000 (CDN default 10).ops/effects.ts:278
widthSizeValueRegion width in px or percent.ops/effects.ts:270
xSizeValueRegion left offset in px or percent.ops/effects.ts:274
ySizeValueRegion top offset in px or percent.ops/effects.ts:276

Type Literal ​

ts
{
  faces: true;
  strength?: number;
}
NameTypeDescriptionDefined in
facestrueBlur every detected face instead of a fixed region.ops/effects.ts:282
strength?numberBlur strength, 0..5000 (CDN default 10).ops/effects.ts:284