locked
FFImageLoading Android Distortion Problem RRS feed

  • Question

  • User71553 posted

    I'm having an odd issue with FFImageLoading images in XF Android. The first time the image is displayed, everything is perfect. But then for all subsequent displays (anywhere in the app), the image is oddly distorted.

    If I simply re-layout the content, there is no problem. It only happens when there is a new instance with the same image being displayed. The problem does not happen at all on iOS.

    I am using 2.4.4.859.

    Any ideas? Thanks in advance!

    Tuesday, February 19, 2019 11:12 PM

All replies

  • User76049 posted

    @DemiVision said: I'm having an odd issue with FFImageLoading images in XF Android. The first time the image is displayed, everything is perfect. But then for all subsequent displays (anywhere in the app), the image is oddly distorted.

    If I simply re-layout the content, there is no problem. It only happens when there is a new instance with the same image being displayed. The problem does not happen at all on iOS.

    I am using 2.4.4.859.

    Any ideas? Thanks in advance!

    Maybe look at the Image caching options, it was altered in this release.

    https://www.nuget.org/packages/Xamarin.FFImageLoading/2.4.4.859

    Tuesday, February 19, 2019 11:32 PM
  • User71553 posted

    I had already tried most of the options. But after digging deeper, it looks like an issue with DownSampleToViewSize. If I turn that off, the problem goes away. I'm not sure it's exactly what I want, but I'll take it for now :) Thanks.

    Tuesday, February 19, 2019 11:47 PM
  • User71553 posted

    Turns out this issue was never resolved. I am still having the same problem. With identical settings, images render great on iOS but are badly distorted on Android (looks like really bad scaling).

    I am using:

    DownsampleToViewSize = true; Aspect = Aspect.AspectFit;

    Any ideas on what could account for the platform specific difference?

    Friday, December 20, 2019 5:35 PM