882088 - fix thumbnail aspect ratio in video app

882088 - better calculation for square images

882088 - use scale function in order to fix 1 pixel issue

882088 - add some comments
Merge pull request #12660 from mahsam/882088-video-thumbnail

882088 - fix thumbnail aspect ratio in video app, r=johnhu