From 85bef2b3bd5708c31da14cdbfcce24ea38897cce Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Thu, 4 Sep 2025 16:49:15 +0200 Subject: [PATCH] Add crop preview rectangle while dragging --- croppa/main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/croppa/main.py b/croppa/main.py index b88c651..2f9f1d7 100644 --- a/croppa/main.py +++ b/croppa/main.py @@ -680,6 +680,13 @@ class VideoEditor: display_frame ) + # Draw crop selection preview during Shift+Click+Drag + if self.crop_preview_rect: + x, y, w, h = self.crop_preview_rect + cv2.rectangle( + canvas, (int(x), int(y)), (int(x + w), int(y + h)), (0, 255, 0), 2 + ) + # Add info overlay rotation_text = ( f" | Rotation: {self.rotation_angle}°" if self.rotation_angle != 0 else ""