KEEP icon indicating copy to clipboard operation
KEEP copied to clipboard

Fix: Ensure Even Dimensions for Resizing to Avoid FFmpeg Errors

Open administer03 opened this issue 1 year ago • 0 comments

Hi, thank you for your dedication to this amazing project. @jnjaby

When resizing images, dimensions that are not even numbers can cause errors when passed to FFmpeg, as it requires even-numbered dimensions for processing. This issue commonly occurs when the minimum dimension of an input image is smaller than 512 pixels, resulting in resizing operations that may produce odd dimensions.

I have added logic to ensure that the resized image dimensions are adjusted to be even numbers before applying the resizing operation.

Please let me know if further adjustments are required.

administer03 avatar Nov 22 '24 05:11 administer03