Hi Guys,
I'm facing a issue. I'm developing a application. It will pick image from gallery and post it to server. When image uploaded to server and i will show the uploaded images in the gallery using web service, i found that some images rotated(means vertically images not showing correctly).
Any one know what's the issue.
Regards Ghulam Rasool
1 Answer
Ghulam,
Try to give fixed Height & width to image before you post it to server.
See this...
var imgProceed = Ti.UI.createImageView({ height : 400, width : 320, }); function openLibraryProceed() { Titanium.Media.openPhotoGallery({ success : function(event) { newImgProceed = event.media; imgProceed.image = newImgProceed; Ti.App.proceedImg = imgProceed.toImage(); // Set this Ti.App.proceedImg property as post time image... }, cancel : function() { }, error : function(error) { } }); }
Your Answer
Think you can help? Login to answer this question!