Skip to content

🎥 Make videos programmatically with React

Update apply-crop.ts

JonnyBurger157d679d1e33
diff --git a/packages/convert/app/lib/apply-crop.ts b/packages/convert/app/lib/apply-crop.ts
index 1632da4ec7..4f39be1329 100644
--- a/packages/convert/app/lib/apply-crop.ts
+++ b/packages/convert/app/lib/apply-crop.ts
@@ -3,7 +3,7 @@ import type {Dimensions} from './calculate-new-dimensions-from-dimensions';
export const applyCrop = (dimensions: Dimensions, cropRect: CropRectangle) => {
return {
- width: Math.min(dimensions.width, cropRect.width - cropRect.left),
- height: Math.min(dimensions.height, cropRect.height - cropRect.top),
+ width: Math.min(dimensions.width, cropRect.width),
+ height: Math.min(dimensions.height, cropRect.height),
};
};