Skip to content

mdg:camera Option to disable scaling #94

@flot92

Description

@flot92

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
    })
  );

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions