Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Why is my profile picture rotated 90 degrees?
Hello, I have a detail using screenlet profile on android, on some devices rotate the photo 90 degrees, do you know how I can correct that? I already tried taking the orientation with ExifInterface but it is not possible because it always returns a 0 "zero".
Hi!
Some phones have the default camera in landscape, you can check the orientation (are you sure that is 0 in all the devices?) and rotate it in the onUserPortraitLoadReceived listener. There is some code to rotate in the rotateImage method under UserPortraitService.
Some phones have the default camera in landscape, you can check the orientation (are you sure that is 0 in all the devices?) and rotate it in the onUserPortraitLoadReceived listener. There is some code to rotate in the rotateImage method under UserPortraitService.