Getting image with Cordova Camera question - HELP


#1

Hi,

I am getting photos as below,

	$scope.getPictures = function(postid){
	var options = { quality : 50,
		  destinationType : Camera.DestinationType.DATA_URL,
		  sourceType : Camera.PictureSourceType.PHOTOLIBRARY,
		  allowEdit : true,
		  targetWidth: 100,
		  targetHeight: 100,
		  saveToPhotoAlbum: false };

	navigator.camera.getPicture(onSuccess, onFail, options);

	function onSuccess(imageURI) {
	    $scope.upload('data:image/jpeg;base64,' + imageURI, postid);
	}

	function onFail(message) {
	}
}

It will crop to the target width, right? 100X100, but as I get that, I want to get the small version of this as well.
Per say, 25X25. It it possible to do that with that option?


#2

the targetWidth/Height will not crop, it will resize the image to the specified values.