1

I want to set height and width of LoadingPlaceholder in CachedImage of FFImageLoading in Xamarin.Forms.

I have tried by following way but the GIF image use full size and shows big. I want to make it 64px as it's current size.

Code: xaml file

Namespace: xmlns:ff="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms"

<ff:CachedImage Source="image.png" Aspect="AspectFill" 
        LoadingPlaceholder="Spinner64px.gif" 
        WidthRequest="375"
        HeightRequest="375">
</ff:CachedImage>

Tried with SVG but didn't get any effect

<ff:CachedImage Source="image.png" Aspect="AspectFill" 
        LoadingPlaceholder="Spinner64pxSVG.svg" 
        WidthRequest="375"
        HeightRequest="375">
</ff:CachedImage>

Can you please suggest me how to show original size of gif image or set height and width of it?

enter image description here

Nanji Mange
  • 2,155
  • 4
  • 29
  • 63
  • https://github.com/luberda-molinet/FFImageLoading/issues/684 – ColeX Mar 26 '18 at 09:03
  • @ColeXia-MSFT I have changed according to the example(Edited in question). But didn't get anything. Even image is also not visible. Can you please suggest me what should I change in my code? – Nanji Mange Mar 26 '18 at 09:49
  • I just want you see the author's reply.. You have to change the placeholder image but not in code .. – ColeX Mar 26 '18 at 09:51
  • @ColeXia-MSFT I am sorry but I am not getting what do you mean by `You have to change the placeholder image but not in code` Can you please explain? – Nanji Mange Mar 26 '18 at 10:37
  • you can use the image file in SVG format, it is not support to modify placeholder size programmatically. – ColeX Mar 27 '18 at 02:13
  • Did you ever find a solution to this? – astralmaster Mar 29 '20 at 20:19

0 Answers0