KEEP
KEEP copied to clipboard
Fix: Ensure Even Dimensions for Resizing to Avoid FFmpeg Errors
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.