AppMare.MauiWeb.FFImageLoading
1.0.5
dotnet add package AppMare.MauiWeb.FFImageLoading --version 1.0.5
NuGet\Install-Package AppMare.MauiWeb.FFImageLoading -Version 1.0.5
<PackageReference Include="AppMare.MauiWeb.FFImageLoading" Version="1.0.5" />
<PackageVersion Include="AppMare.MauiWeb.FFImageLoading" Version="1.0.5" />
<PackageReference Include="AppMare.MauiWeb.FFImageLoading" />
paket add AppMare.MauiWeb.FFImageLoading --version 1.0.5
#r "nuget: AppMare.MauiWeb.FFImageLoading, 1.0.5"
#:package AppMare.MauiWeb.FFImageLoading@1.0.5
#addin nuget:?package=AppMare.MauiWeb.FFImageLoading&version=1.0.5
#tool nuget:?package=AppMare.MauiWeb.FFImageLoading&version=1.0.5
AppMare.MauiWeb.FFImageLoading — FFImageLoading on the web
This is not a new image library. It is web support for
FFImageLoading.Maui. You keep using
FFImageLoading and its API (CachedImage, SvgCachedImage, placeholders, events and
transformations). This package makes that same code run in the visitor's browser when your
.NET MAUI app runs as a website with MauiWeb.
Setup
Your MAUI app already references FFImageLoading.Maui. Add this package to the web host and turn
it on after UseMauiWeb():
dotnet add package AppMare.MauiWeb.FFImageLoading
app.MapMauiWeb(() => MauiProgram.CreateMauiApp(b => b
.UseMauiWeb()
.UseMauiWebFFImageLoading()));
UseFFImageLoading() can stay for the phone apps. No other changes.
What works in the browser
- The browser loads and caches the image.
LoadingPlaceholdershows until it arrives. - Failed loads retry (
RetryCount,RetryDelay), then showErrorPlaceholder. - The image fades in.
Success,ErrorandFinishfire with the image's real size. - Transformations, drawn by the browser: circle, rounded, corners (rounded or cut), crop, grayscale, sepia, blur, flip, rotate, color fill, tint and color matrices.
Web differences
- Shapes with a ratio (circle, rounded, corners, crop) fill a box of that ratio, so give avatars
equal
WidthRequestandHeightRequest. - Downsampling options are accepted, but the browser scales the image itself.
See it running
- Live gallery (every control, with its source): https://mauiweb.appmare.com/gallery.html
- Sample apps running as websites, such as Maui Planets: https://live.mauiweb.appmare.com/planets (all ten in the gallery's Samples section; source at https://github.com/appmare)
Links
- Live demo: https://live.mauiweb.appmare.com/ffimageloading
- Docs: https://mauiweb.appmare.com/docs.html#addons
- MauiWeb is a commercial product by AppMare, free for local development. Licence and pricing: https://mauiweb.appmare.com/pricing.html
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- AppMare.MauiWeb (>= 1.0.5)
- FFImageLoading.Maui (>= 1.3.2)
- Microsoft.Maui.Controls.Core (>= 11.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.