Github user trubit closed the pull request at:
https://github.com/apache/cordova-plugin-camera/pull/118
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so
Github user trubit commented on the pull request:
https://github.com/apache/cordova-plugin-camera/pull/118#issuecomment-136507080
Yeah, in my case it worked, but correct calculation is:
var scale = Math.min(targetWidth / this.width, targetHeight /
this.height
GitHub user trubit opened a pull request:
https://github.com/apache/cordova-plugin-camera/pull/118
Retaining image ratio when resizing
According to documentation and iOS/Android behavior, resized images should
retain ratio. This code fixes windows scaling.
You can merge this pull