Skip to content

Conversation

SergioRAgostinho
Copy link

I was testing the library selecting some less common resolutions like 480 x 360 px (like the examples in the supported media formats) and a resolution of 480 x 800 px was being selected. This version respects the definition of "closest supported resolution" as it minimizes the l2 norm in both dimensions.

@SergioRAgostinho
Copy link
Author

Just noticed #50 addresses the same issue.
Also in the code I've submitted there's no real need to compute the sqrt (line 116).
Polluted the commit with stuff from #89.
Closing

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