Android-FilePicker icon indicating copy to clipboard operation
Android-FilePicker copied to clipboard

Prb with image orientation

Open ins0u opened this issue 5 years ago • 0 comments

Hello,

I have a little problem.

When I select an image (square), it is automatically rotated in the wrong orientation.

Example :

Image of gallery

My image is ok (orientation : portrait)

When i choose my image :

Image selected

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)

ins0u avatar Jul 07 '20 14:07 ins0u