Skip to content

Fix issue with shorter vides (less than 3 seconds) causing issues with thumbnail generation #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

iCH-Borovich
Copy link

I've recently encountered some challenges while working with this gem, particularly in understanding the :time parameter, which was not clearly documented.

Moreover, I faced issues when uploading videos shorter than 3 seconds. After a thorough review and analysis of the source code, I have implemented a fix.
As a solution, I've set the default value to check the video's length and, if it falls outside the :time value, automatically selecting an appropriate frame, preferably the first one.

I've also included a small description of the :time parameter to enhance the documentation.

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