Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Firebase存储的图像方向错误_Android_Firebase_Firebase Storage - Fatal编程技术网

Android Firebase存储的图像方向错误

Android Firebase存储的图像方向错误,android,firebase,firebase-storage,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("o

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

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);
我还从gallery中拍照,通过上述代码立即拍摄的照片和使用gallery中的设备拍摄的旧图像都以错误的方向存储在Firebase中。它们很好地出现在设备上,如果你转到下载链接,也很好

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

有些图像只是方向性很好,很多不是从设备上拍摄的


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

这方面运气好吗?