diff --git a/AiServer.ServiceInterface/Generation/ComfyProvider.cs b/AiServer.ServiceInterface/Generation/ComfyProvider.cs index 057c00e..c24d9f4 100644 --- a/AiServer.ServiceInterface/Generation/ComfyProvider.cs +++ b/AiServer.ServiceInterface/Generation/ComfyProvider.cs @@ -232,7 +232,7 @@ public async Task TransformMediaAsync(MediaProvider provider, M // Handle cropping if (args is { CropX: not null, CropY: not null, CropWidth: not null, CropHeight: not null }) { - filterComplex.Add($"crop={args.CropWidth}:{args.CropHeight}:{args.CropX}:{args.CropY}"); + filterComplex.Add($"[0:v]crop={args.CropWidth}:{args.CropHeight}:{args.CropX}:{args.CropY}"); } if (args is { WatermarkInput: not null, WatermarkPosition: not null })