错误的图像方向Firebase存储

时间:2017-01-16 11:14:54

标签: android firebase firebase-storage

我正在使用以下方式在设备上拍照:

Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
    cameraIntent.putExtra("crop", "true");
    cameraIntent.putExtra("aspectX", 0);
    cameraIntent.putExtra("aspectY", 0);
    cameraIntent.putExtra("outputX", 150);
    cameraIntent.putExtra("outputY", 200);
    startActivityForResult(cameraIntent, CAMERA_REQUEST);

我也从画廊拍摄照片,通过上面的代码拍摄的照片和使用设备从画廊拍摄的旧照片都以错误的方向存储在Firebase中。它们出现在设备上很好,如果你去下载链接就可以了。

Firebase存储中的预览以及使用Picasso下载图像时会导致此问题。我不完全确定,但Glide没有这个问题我相信..但由于Recyclerview闪烁的问题,我无法使用Glide。

有些图像只是很好的方向,很多图像都没有从设备中取出......

如何获得正确的图像方向?

0 个答案:

没有答案
相关问题