Skip to content

FFImageLoading 2.2.21

Compare
Choose a tag to compare
@daniel-luberda daniel-luberda released this 25 Oct 17:57
· 500 commits to master since this release

Complete history of changes available here: v2.2.20...v2.2.21

Xamarin.Forms - Important

FFImageLoading has a regression since 2.2.4 which caused CachedImage to always to fill entire space available (different behaviour than Image. It's now fixed, but as it was included in many versions it may be a breaking change for some. That's why I didn't enable that fix by default. You can do it manually with:

CachedImage.FixedOnMeasureBehavior = true;
Read more here: #545

Also for Xamarin.Forms >= 2.4 please set: CachedImage.FixedAndroidMotionEventHandler = true if experiencing any gesture recognizers problems on Android.

I'll include it as a default in next major version.

Improvements

  • Added Mock platform for unit testing in headless scenarios. You can enable it by setting: ImageService.EnableMockImageService = true
  • Added SvgCachedImage.Init() method (to avoid linking problems)
  • Code refactorings
  • Added FadeAnimationDuration / FadeAnimationForCachedImages for CachedImage views
  • SvgCachedImage improvements

Fixes

  • Android: exception while reading EXIF orientation shouldn't fail image loading
  • ManagedImageView (added lock when setting drawable because of exceptions when called multiple times at once)
  • Added missing PreserveAtrributes to prevent linking issues
  • Various Windows fixes
  • Fixed Windows MainThreadDispatcher regression which caused images to not appear
  • Fixes #763 SvgDataResolver not working when using in PCL project (missing constructor)
  • Fixed iOS webp regression
  • Added lock for SVG to PNG encoding (to avoid OOMs)
  • Windows Nuspec fixes / refactorings #762 #759 (Wrong dlls used on WinRT)
  • Xamarin.Forms.Windows: AsJPGStreamAsync doesn't ignore quality parameter
  • SVG fixes