Project: titanium
Issue TIMOB-20257: Windows: Support Ti.Blob.imageAs* methods
On windows phone I have to make some image manipulation, in my case I want to resize/reduce quality of an image before upload it on my server. On Android/iOS I use [ti.imagefactory|http://gitt.io/component/ti.imagefactory] and everything works as expected with this function that I made for a little manipulation on the image before upload it: {code:javascript} Alloy.Globals.imageMaxDimensione = 500; Alloy.Globals.imageQuality = 0.9; function resizeImageForUpload(imageBlob){	_altezza = imageBlob.getHeight();	_larghezza = imageBlob.getWidth();	_newLarghezza = 0; _newAltezza = 0;	if(_altezza > _larghezza){ //portrait	_newAltezza = Alloy.Globals.imageMaxDimensione;	_newLarghezza = Math.floor(Alloy.Globals.imageMaxDimensione*_larghezza/_altezza);	} else { //sono in landscape	_newLarghezza = Alloy.Globals.imageMaxDimensione;	_newAltezza = Math.floor(Alloy.Globals.imageMaxDimensione*_altezza/_larghezza);	}	var ImageFactory = require('ti.imagefactory');	var dict = {	width: _newLarghezza,	height: _newAltezza,	quality: Alloy.Globals.imageQuality	};	newBlob = ImageFactory.imageAsResized(imageBlob,dict);	return newBlob; } {code} but on windows phone I haven't ti.imagefactory library. As a workaround I could use [Titanium.Blob.imageAsResized|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Blob-method-imageAsResized] but this function is not supported on Windows Phone. Is it possible to include in future update a compatibility with Windows Phone for the function used to manipulate images? The best in this case will be ti.imagefactory also for Windows Phone.
Story points: 8