mobile-packages icon indicating copy to clipboard operation
mobile-packages copied to clipboard

mdg:camera Option to disable scaling

Open flot92 opened this issue 10 years ago • 0 comments

I need the original image from the phone camera. It would be great if there is a way to disable scaling. Reffering to the cordova camera documentation, it should work, if the targetWidth and height are not declared?

An option in photo-cordova.js would be great to disable targetWidth or height. Would that open some other issues? In my case the app needs the best image avalibale from the device camera and than has to uploaded the image.

I do not know how to patch the plugin, otherwise i would try to fix it myself. Is that the way to go? Or should I try something differently.

photo-cordova.js:

navigator.camera.getPicture(success, failure, 
    _.extend(options, {
      quality: options.quality || 49,
      targetWidth: options.width || 640,
      targetHeight: options.height || 480,
      destinationType: Camera.DestinationType.DATA_URL
    })
  );

flot92 avatar Nov 09 '15 08:11 flot92