AndroidRotateImage icon indicating copy to clipboard operation
AndroidRotateImage copied to clipboard

SDK 7.0GA Support

Open jerodfritz opened this issue 7 years ago • 5 comments

Would you have time to update this module for the latest 7.0GA SDK support?

jerodfritz avatar Dec 15 '17 16:12 jerodfritz

Please do!!!

walkthelot avatar Mar 01 '18 04:03 walkthelot

+1

Sambusik avatar Mar 29 '18 15:03 Sambusik

Someone update it for Ti 7+ please. @skypanther ?

qasim90 avatar Aug 16 '18 06:08 qasim90

Updated code. I currently don't have the environment to compile it - If anyone can generate the binaries, please send a PR 🙏🏼

ricardoalcocer avatar Nov 21 '18 20:11 ricardoalcocer

Just a little snippet of code. I was able to do away with the module by accessing "uprightHeight" and then seeing if I had to do special manipulation for Android. Can't really provide full code sample as mine is quite complex, but uprightHeight and comparing to height gave me what I needed to adapt my code conditionally. Basically if uprightHeight = width then you know you have some manipulating to do.

var landscape = sourceWidth > sourceHeight;
if (Ti.Platform.osname == 'android') {
    var uprightHeight = parseInt(theBlob.uprightHeight);
    Ti.API.info('scaleVehicleImage Source uprightHeight:'+uprightHeight);
}

var androidPortraitOverride = false;
if ((uprightHeight == sourceWidth) && (Ti.Platform.osname == 'android') && (landscape)) {
    Ti.API.info('scaleVehicleImage Android landscape override. Is actually portrait but was detected as landscape');
    landscape = false;
    androidPortraitOverride = true;
}

walkthelot avatar May 03 '22 21:05 walkthelot