I writting a application. My app will select photo from gallery. I use Picasso to load Image to ImageView.
Problem is Picasso auto rotate any photo captured from camera, but not rotate any image downloaded and saved to internal storage from internet
This is image download from internet:
This is photo captured from camera, Picasso auto rotate it, i want fix it:
This is my code:
picasso
.load(uriPhoto)
.resize(newWidthBitmap.toInt(), newHeightBitmap.toInt())
.centerInside()
//.rotate(90f)
.into(target_image)