-
Notifications
You must be signed in to change notification settings - Fork 4
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
Why force highest to be first in output? #17
Comments
Hello, I'm not using this library for a while – Can you send a PR for fixing that behavior? |
I submitted a pull request which should take care of all of this and make the library more as expected with the input parameters. I also added tests to make sure the library now also understands vertical video resolutions and returns them correctly. |
Fix for #17: Add tests & support for vertical video resolutions + Formatting Fixes
shipped at |
Thanks for your fast support 👍 and the way you shipped this easily. It's a small library but it's certainly usefull. |
Hello, I just found this to calculate the aspect ratio of images to makes sure a suer selects a 16x9 or a 9x16 for upload.
However, I noticed that this library always puts whatever is the heigher value as the first in the output?
Aka:
Which is not correct and isn't very useful? Why not keep the order on the final output? Is there a reason that I am not aware of?
I understand it may be necessary for the
gcd
calculation, but not for the final output. I think there it makes more sense to use the initial height/width as they were input.The text was updated successfully, but these errors were encountered: