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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: