ffmpegCrop property

String? get ffmpegCrop

Returns crop filter for ffmpeg in "out_w:out_h:x:y" format

Implementation

String? get ffmpegCrop {
  final area = this.area;
  if (area == null) return null;

  final w = area.width * asset.orientatedWidth;
  final h = area.height * asset.orientatedHeight;
  final x = area.left * asset.orientatedWidth;
  final y = area.top * asset.orientatedHeight;

  return '$w:$h:$x:$y';
}