Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-2387

navigator.camera.getPicture targetWidth/targetHeight loses aspect ratio in WP8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.0
    • None
    • None
    • Tested on Visual Studio Emulator and Nokia Lumia 920

    Description

      It seesms like navigator.camera.getPicture with the targetWidth and targetHeight loses aspect ratio on WP8.
      navigator.camera.getPicture(onPhotoDataSuccess, onFail,

      { quality: 80, destinationType: destinationType.DATA_URL, sourceType: source, targetHeight: 640, targetWidth: 640 }

      );
      Returns a image which is 640px*640px although the cameras aspect ratio is 1,5:1
      The same app built for Android is OK.

      Attachments

        Activity

          People

            purplecabbage Jesse MacFadyen
            omba Ole Martin Bakke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: