meteor / meteor/mobile-packages
mdg:camera Option to disable scaling
- Dominant language
- JavaScript
- Stars
- 338
- Forks
- 148
- PR merge metrics
- No merged PRs in 30d
Description
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:
``` javascript
navigator.camera.getPicture(success, failure,
_.extend(options, {
quality: options.quality || 49,
targetWidth: options.width || 640,
targetHeight: options.height || 480,
destinationType: Camera.DestinationType.DATA_URL
})
);
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in photo-cordova.js and compare the current targetWidth and targetHeight defaults with the Cordova camera documentation referenced in the issue. Define the option behavior for requests that need the original camera image, then verify that omitting scaling still produces an image suitable for upload.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100