Skip to content

Fix: Ensure Even Dimensions for Resizing to Avoid FFmpeg Errors#15

Open
administer03 wants to merge 1 commit into
jnjaby:mainfrom
administer03:main
Open

Fix: Ensure Even Dimensions for Resizing to Avoid FFmpeg Errors#15
administer03 wants to merge 1 commit into
jnjaby:mainfrom
administer03:main

Conversation

@administer03

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant