ImageEditor crops image and returns picture upside down if landscape, sometimes doesn't load image

If I pick a landscape image from the phone and crop it with ImageEditor, my returning picture seems to always be upside down. If its landscape its fine How do I get it to return the correct side? Sample project attached. Second issue, sometimes the image never loads at all, just a black screen on editor.


Landscape image from iOS:




ISSUE 1

Shows up correct direction on the editor:




But the return image is upside down:





ISSUE 2

Sometimes the image does not show up at all. But its random.



Attachment: ImageCropper_954fa26b.rar

3 Replies

RS Ramya Soundar Rajan Syncfusion Team April 1, 2020 11:11 AM UTC

Hi Reza Mohamed, 
 
Query 1: If I pick a landscape image from the phone and crop it with ImageEditor, my returning picture seems to always be upside down. 
 
The reported issue in iOS has resolved by referring the below mentioned KB  
 
 
Query 2: sometimes the image never loads at all, just a black screen on editor. 
 
We have checked the reported issue with the updated sample and already having testcases sample with ensuring that in various version iPhone simulator, but we were unable to reproduce the reported issue. For your reference, without having proper replication it is too complex to validate the reported things by our development team.   
  
We hope, you can understand our situation and if possible, could you please share the proper replication steps/sample to replicate the same that will more helpful to analyze further and provided a possible solution at earlier.  
 
Regards, 
Ramya S 



RE Reza April 1, 2020 10:31 PM UTC

Most of the code in that sample seems to be deprecated as per my screenshot below. Further, I am finding exceptions hitting when I execute the code for Android - second picture. I have not been able to test on a iOS because of a current Xamarin.iOS bug that isn't firing TapGestureRecognizers (April 1, 2020 https://github.com/xamarin/Xamarin.Forms/issues/10162)






In my case, I am using Xamarin MediaPlugin https://github.com/jamesmontemagno/MediaPlugin to load the image from the camera, and PRISM for Dependency Injection. Would it be possible to provide an updated solution on how to use the workaround in conjunction with these, please?




RS Ramya Soundar Rajan Syncfusion Team April 2, 2020 08:34 PM UTC

Hi Reza Mohamed, 
 
We have checked your reported problem. We have modified the sample with access permission. Please refer the sample from below link. 
 
 
Please refer the below link for the MediaPlugin image rotation problem and for more information 
 
 
Regards, 
Ramya S 


Loader.
Up arrow icon