Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mdg:camera Option to disable scaling #94

Open
flot92 opened this issue Nov 9, 2015 · 0 comments
Open

mdg:camera Option to disable scaling #94

flot92 opened this issue Nov 9, 2015 · 0 comments

Comments

@flot92
Copy link

flot92 commented Nov 9, 2015

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 flot92 changed the title Option to disable scaling mdg:camera Option to disable scaling Nov 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants