Page 5 of 5

Issue with incorrect rotation of image from camera service

Posted: Wed Nov 01, 2017 10:23 am
by Serhii Kulibaba

Please read the size of the image before rotation and apply them again after that, (the height as the width and vise versa)


Issue with incorrect rotation of image from camera service

Posted: Wed Nov 01, 2017 2:47 pm
by redwhiteblue4free

im not sure how to apply them again after that.

var imgData = "https://api.appery.io/rest/1/db/files..." + value;

var img = new Image();
img.src = imgData;

img.onload = function() {
var imgSize = {
w: img.width,
h: img.height
};

Code: Select all

 if (imgSize.w  imgSize.h) { 
     $("[name=image]").css('-webkit-transform', 'rotate(90deg)'); 
 } 

};

return imgData;

how do i apply them again? thanks


Issue with incorrect rotation of image from camera service

Posted: Thu Nov 02, 2017 11:08 am
by Serhii Kulibaba

We are very sorry, but this is something outside the scope (https://docs.appery.io/docs/general-s...) of our standard support.

Please check the code, which sets image value to your image components.