Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Issue with incorrect rotation of image from camera service

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

redwhiteblue4free
Posts: 0
Joined: Tue Jul 04, 2017 6:37 am

Issue with incorrect rotation of image from camera service

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Issue with incorrect rotation of image from camera service

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.

Return to “Issues”