Skip to content

docs: Correct the 6.x image asset and SVG pages - #25546

Merged
MartinZikmund merged 4 commits into
unoplatform:servicing/6.8from
mikernet:dev/mikernet/68-docs-image-formats
Nov 20, 2026
Merged

MartinZikmund merged 4 commits into
unoplatform:servicing/6.8from
mikernet:dev/mikernet/68-docs-image-formats

Conversation

@mikernet

@mikernet mikernet commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Issue: N/A (documentation only)

PR Type:

📚 Documentation content changes

What changed? 🚀

This PR fixes the 6.x docs for image assets and SVG:

  • Supported asset types table: the same table as docs: Correct the supported image formats table #25545 on master. It has one Skia renderer row plus native-renderer rows labeled 6.x, so the same table holds for 6.x and 7.0. It drops the native macOS row, which was removed in 6.0. It also fixes the animation and browser notes and the native Android BMP, HEIC and WebP cells: that renderer can't load those formats from ms-appx:///.
  • svg.md: the page said the Svg feature is enabled by default on Desktop and WebAssembly. The Uno.Sdk never adds it, so every target needs it except Windows and the native WebAssembly renderer.
  • 6.x-only sections of working-with-assets.md:
    • The custom qualifier table drops its uwp value and the #if WINDOWS_UWP snippet; no 6.x head defines WINDOWS_UWP. It now says where the qualifier is actually read.
    • ImageSource.DefaultImageLoader is marked as native-Android-only, and it now names the Uno.UniversalImageLoader package that the Uno.Sdk references.
    • The bundle:// section is removed. ImageSource doesn't handle that scheme, so the URI falls through to the download path and fails.

The cells were verified on 6.7.30, 6.8 and master:

  • Code review: the decode path of each renderer on 6.7, 6.8 and master, plus the codecs compiled into SkiaSharp.
  • Runtime: apps built from the 6.7.30 template, run on Skia desktop, on Skia and native WebAssembly in Chrome, and on Skia and native Android (Android 12 emulator). This includes a Desktop app without Svg, where no SVG renders.
  • Decoder probes: Safari 27 and the iOS 26.5 simulator, for the browser-dependent and native iOS cells.

The live docs site appears to match release/stable/6.7, where these pages are identical. Should I also open this against release/stable/6.7?

PR Checklist ✅

The table mixed renderers and was out of date: it had rows for the
removed native macOS renderer, presented the native Android and iOS
rows as current, claimed GIF animation only on WebAssembly, and said
Android loads BMP, HEIC, WebP and PDF assets, which the native
renderer can't load from ms-appx.

Use one row for the Skia renderer and label the native-renderer rows
as 6.x only, so the same table holds for 6.x and 7.0. The cells were
checked against the code on 6.7, 6.8 and master, at runtime on 6.7.30
(desktop, WebAssembly in Chrome, Android emulator), and with decoder
probes in Safari and the iOS simulator.
These sections described behavior 6.x doesn't have:

- The custom qualifier listed a uwp value set under WINDOWS_UWP,
  which no 6.x head defines. Only RetargetAssets reads the qualifier,
  on Android and UIKit (iOS, tvOS, Mac Catalyst) heads.
- ImageSource.DefaultImageLoader only matters for the native Android
  renderer, and the Uno.Sdk now references Uno.UniversalImageLoader
  itself instead of nventive.UniversalImageLoader.
- bundle:// URIs aren't special-cased by ImageSource, so they fall
  through to the download path and fail.
svg.md said the Svg feature is enabled by default on Desktop and
WebAssembly. The Uno.Sdk never adds it, so on 6.x an SVG renders on
those targets only after Svg is added to UnoFeatures. Only Windows and
the native WebAssembly renderer don't need it.
The footnote said every target uses the Skia renderer from 7.0, but
the Windows App SDK head renders with WinUI. Use the same wording as
the master table so the two stay aligned.
@unodevops

Copy link
Copy Markdown
Contributor

@agneszitte

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.

@unodevops

Copy link
Copy Markdown
Contributor

@mergify

mergify Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@MartinZikmund MartinZikmund left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mikernet, this is a careful cleanup. I checked the corrected claims against servicing/6.8, and they hold:

  • The Uno.Sdk never adds Svg implicitly. Uno.Implicit.Packages.ProjectSystem.Uno.targets only references Uno.WinUI.Svg and Svg.Skia when UnoFeatures contains svg, and skips them for the native WebAssembly renderer.
  • RetargetAssets only handles uikit and android. The iOS and Android converters read the custom qualifier, and anything other than ios / android is rejected. No WINDOWS_UWP branch is needed for 6.x.
  • Uno.UniversalImageLoader is referenced only when skiarenderer is absent on Android. ImageSource.DefaultImageLoader lives in ImageSource.Android.cs.
  • bundle:// has no handler. Only ms-appx goes through InitFromResource, so the section was right to go.
  • The native Android renderer only packages .png, .jpg, .jpeg and .gif as images (RetargetAssets.cs), which matches footnote 5.

I couldn't check the runtime-only cells (browser decoders, per-format Skia support) from the code, so I'm taking your test results for those. Optional: since the live site matches release/stable/6.7, a backport there would help.

@MartinZikmund
MartinZikmund merged commit 979568f into unoplatform:servicing/6.8 Nov 20, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants