Closed SAGARSURI closed 6 years ago
@dmitry-zaitsev What is your suggestion on this ?
@SAGARSURI sorry for the delayed answer.
Rotating the bitmap is, of course, solving the problem. However, it is a slow and memory intensive operation as you would essentially need to load the copy of the original image into memory.
I will take that problem into account - I think we might address it in Fotoapparat. Here is the related ticket: https://github.com/Fotoapparat/Fotoapparat/issues/241
@SAGARSURI hello,I have same issue.Do you have any update?
I am using your same kotlin code. I saw you were rotating the imageView to get the correct orientation of the image. Below is your code from the example:
This works fine if the ImageView is small in the layout. But if the imageView is covering the screen width and height, the issue is that the imageView is not covering the whole screen width and height due to rotation. My suggestion would be to rotate Bitmap instead of imageView. Below is my code which I always use and gives me perfect orientation:
Method
rotateBitmap(bitmap,degree)
: