video_editor icon indicating copy to clipboard operation
video_editor copied to clipboard

Allow zooming out beyond video boundaries while preserving aspect ratio

Open maRci002 opened this issue 1 year ago • 1 comments

Currently, users cannot zoom out beyond the boundaries of the video. This means that if the video is in a 1:1 aspect ratio and the user selects a 9:16 aspect ratio, they cannot zoom out to see the full video without cropping the sides.

The expected behavior should be that the user can zoom out beyond the boundaries of the video, but only up to the point where at most one axis of the video exceeds the dimensions of the original video. This will allow the user to see more of the video without losing any content.

Here are the images to illustrate the current and expected behavior:

Actual: the crop area cannot be bigger than the actual video

+-----------------------------+
|       +-------------+       |
|       |             |       |
|       |             |       |
|       |             |       |
|       |             |       |
|       |             |       |
|       |             |       |
|       |             |       |
|       +-------------+       |
+-----------------------------+

Expected: the crop area can be bigger than the actual video but at most it can only be greater than one axis

+-----------------------------+
|                             |
|                             |
|                             |
|                             |
|                             |
+-----------------------------+
|                             |
|                             |
|                             |
|                             |
|                             |
|                             |
|                             |
|                             |
|                             |
+-----------------------------+
|                             |
|                             |
|                             |
|                             |
|                             |
+-----------------------------+

maRci002 avatar Apr 13 '23 20:04 maRci002