Android-FilePicker
Android-FilePicker copied to clipboard
Prb with image orientation
Hello,
I have a little problem.
When I select an image (square), it is automatically rotated in the wrong orientation.
Example :

My image is ok (orientation : portrait)
When i choose my image :

My image has changed direction (90°)..
I don't know why :/
My code :
FilePickerBuilder.getInstance()
.setMaxCount(1)
.setSelectedFiles(filepath)
.setActivityTitle(getString(R.string.messenger_files_select_photo_video))
.enableVideoPicker(true)
.enableImagePicker(true)
.enableSelectAll(true).setActivityTheme(R.style.FilePickerTheme)
.sortDocumentsBy(SortingTypes.name)
.withOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)
.pickPhoto(this, AppConstant.RC_PHOTOVIDEO);
Do you have an idea ?
Thx for your help :)
(sorry for my bad english)