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)
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Please read the size of the image before rotation and apply them again after that, (the height as the width and vise versa)
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
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.