Thanks for an awesome module!

I'd really like targetWidth and targetHeight supported for camera.

Example snippet from my wanted settings.js:
drupalgap.settings.camera = {
targetWidth: 900,
targetHeight: 900,
quality: 50
}

Comments

roald created an issue.

tyler.frankenstein’s picture

Yes this would be very nice indeed. This could happen around here:

https://github.com/signalpoint/DrupalGap/blob/7.x-1.x/src/modules/image/...

'var photo_options = {' +
        'quality: ' + quality + ',' +
        'destinationType: ' + imagefield_destination_type + '.DATA_URL,' +
        'correctOrientation: true' +
      '};' +

If someone can change the setting of the photo_options value to use something like JSON.stringify($.extend({}, {}, drupalgap.settings.camera)), and then re-assign the destinationType value in src/modules/image/image.js, that would do the trick.

This only can be tested on compiled devices.