Skip to content

FFImageLoading 1.1.7

Compare
Choose a tag to compare
@molinch molinch released this 08 Oct 19:00
· 1728 commits to master since this release

Samples

If you start the Xamarin Forms demo project you can see a lot of samples for the different features.

Changes

Transformations

We have now cross platform image transformations. These are available on nuget

  • BlurredTransformation
  • CircleTransformation
  • ColorSpaceTransformation
  • GrayscaleTransformation
  • RoundedTransformation
  • SepiaTransformation

Please note that you can still define yours: implement ITransformation and you are ready.

Xamarin Forms

Xamarin Forms nuget package is much more advanced. Daniel Luberda fixed a couple of issues and binded features offered by the lib.

  • Transformations: they are now available on Xamarin Forms too. Just call Transform() method to specify one or more transformations

Fading

Fading is now available and enabled by default on iOS. You can still globally disable fading using:
ImageService.Initialize(fadeAnimationEnabled: false)

HttpClient

ModernHttpClient

The dependency on ModernHttpClient has been removed due to bugs 184 and 185. Instead we now rely on native Mono HttpClientHandler. Therefore if you want to continue using ModernHttpClient it still possible and very easy to do so! When you start the app you should then call:
ImageService.Initialize(httpClient: yourModernHttpClientInstance)

Timeouts

It is now possible to specify two kind of web timeouts:

  • headers timeout: this is the max time to connect to the server and get the headers. The default is 15s.
  • read timeout: this is the max time to get the image (connect to server, get headers, get data). The default is 30s.