[GitHub] cordova-plugin-camera pull request: Retaining image ratio when res...

2015-09-09 Thread trubit
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] cordova-plugin-camera pull request: Retaining image ratio when res...

2015-08-31 Thread trubit
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] cordova-plugin-camera pull request: Retaining image ratio when res...

2015-08-27 Thread trubit
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