LeGoffMael / video_editor

A flutter package for editing video written in pure Dart with fully customizable UI. Supports crop, trim, rotation and cover selection.

Home Page:https://pub.dev/packages/video_editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow zooming out beyond video boundaries while preserving aspect ratio

maRci002 opened this issue · 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

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