Skip to content

FFImageLoading 2.0.7

Choose a tag to compare

@daniel-luberda daniel-luberda released this 02 Mar 17:06
· 1301 commits to master since this release

Complete history of changes available here: v2.0.6...v2.0.7

Optimizations:

  • Perform all things on thread pool. Leave UI thread ASAP optimizations
  • iOS: Using ImageIO instead of UIImage withImageData for image resizing. More performant, thread safe, works in thread pool and avoids loading original images into memory.

Enhancements:

  • Xamarin.Forms nuget now supports Windows UWP
  • ImageService.Initialize method refactorings. It now uses Configuration class as a parameter. Old override is depreciated.
  • Android: Support for automatic rotation of images for File image sources basing on file EXIF data.
  • InvalidateCache has a new parameter removeSimilar, it's used to remove different variations of cache keys from MemoryCache (eg. different downsampling settings, different transformations, etc).
  • Success callbacks now return ImageInformation object which contains some informations about loaded image as: CurrentWidth, CurrentHeight, OriginalWidth, OriginalHeight, Path, FilePath, CacheKey
  • Added DownloadImageAndAddToDiskCacheAsync which provides a way to download & cache images without assigning to views (for later usage). #143
  • Xamarin.Forms: Added InvalidateCache overload with ImageSource type parameter
  • Xamarin.Forms: Added ReloadImage method
  • Added FadeAnimationForCachedImages and FadeAnimationDuration options
  • Transformations which use hex color string now support alpha channel on all platforms
  • Updated XF samples to use Xamarin.Forms 2.0, PageFactory 2.0 MVVM framework

Fixes:

  • Various memory leaks fixes to avoid CancellationTokenSource objects not being disposed / garbage collected.
  • Xamarin.Forms for Windows: FileImageSource compatibility improvements with Forms Image class
  • Fix #135: always invoke Success callback on main thread
  • Xamarin.Forms: System.MissingMethodException: No constructor found for CachedImageRenderer::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership)
  • #144 heap corruption detected by dlmalloc_real
  • Android: Removed some legacy ImageViewAsync code
  • Xamarin.Forms Removed some obsolete methods
  • Xamarin.Forms: Obsolete methods refactorings after Xamarin.Forms 2.0 update (generic bindable properties)
  • Some improvements to FFImageLoading.Cross.MvxImageLoadingView class