unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.78k stars 707 forks source link

Image loading and caching #18225

Open MartinZikmund opened 5 days ago

MartinZikmund commented 5 days ago

Discussed in https://github.com/unoplatform/uno/discussions/18190

Originally posted by **ForkBug** September 12, 2024 In maui, the best practice to display an image is using FFImageLoading, which provides lazy loading, cache, and automatic downsampling. In Uno, ImageEx and ImageCache from Windows Community Toolkit provide lazy loading and cache. But no automatic downsampling. What's the best practice in Uno to show an image?
MartinZikmund commented 5 days ago

We need to:

  1. Integrate a more general solution to image loading and caching that behaves reliably across targets
  2. Add documentation on how external libraries for this purpose can be utilized