docs(link): the Asset Bridge needs no libgdiplus (#39, 2 of 2)
servuo-plugins #39 PR 2 moved item and land art off System.Drawing, so the whole Asset Bridge now decodes every picture with its own managed readers and needs no libgdiplus on any host. Retire the prerequisite and the NO_IMAGING wire status from the spec and the operator notes. - link/v8.md §4.4: the migration note now records both PRs as shipped and states the bridge needs no libgdiplus at all; NO_IMAGING is retired from the wire and assets.sources no longer carries an imaging field. - link/SHARD_PREREQS.md: the libgdiplus host prerequisite is marked retired, with the original Protocol 8 text kept for history. - link/INTEGRATION.md: the assets.sources example drops the imaging field, the gate bullet says NO_IMAGING is retired, and the 503 row drops its NO_IMAGING cause. - website/UPGRADE_NOTES.md, website/SPAWN_ATLAS.md: the operator-facing "install libgdiplus / NO_IMAGING" statements are corrected to the new reality. The installer doctor libgdiplus row and INSTALL.md's description of it are left to the installer follow-up, since that code is unchanged here. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014HJEmcaKvWQ8LsnXHKha5y
This commit is contained in:
@@ -72,44 +72,27 @@ World: Loading...
|
||||
|
||||
---
|
||||
|
||||
## Host prerequisite: `libgdiplus` on Linux (Protocol 8)
|
||||
## Host prerequisite: `libgdiplus` on Linux — **retired (servuo-plugins #39)**
|
||||
|
||||
Everything above is a repair to one shard's *scripts*. This one is different in kind: it is a
|
||||
requirement on the **host**, it applies to every shard, and only to Linux ones.
|
||||
> **No longer a prerequisite.** As of servuo-plugins #39 the Asset Bridge decodes every picture it
|
||||
> serves — the body catalogue (PR 1) and item/land art (PR 2) — into ARGB1555 with its own readers
|
||||
> (`BridgeMul`, `BridgeArtMul`, `BridgeUop`, `BridgeHue`, `BridgePng`) and **no `System.Drawing`**, so
|
||||
> a Linux/Mono shard serves art whether or not **libgdiplus** is installed. Installing it is harmless
|
||||
> but buys nothing. The source gate no longer reports an `imaging` state and the `NO_IMAGING` status
|
||||
> is retired from the wire, because there is no longer a decode that libgdiplus gates. The section
|
||||
> below is the original Protocol 8 requirement, kept for history.
|
||||
|
||||
The Asset Bridge ([`v8.md`](v8.md) §4.4) has the shard read art out of the operator's own UO client
|
||||
files. ServUO targets `net48`, so on Linux it runs under Mono, and Mono's `System.Drawing` is a thin
|
||||
layer over **libgdiplus** — which sits in the **decode** path and not merely the encode:
|
||||
`Ultima.Frame` writes ARGB1555 through a `LockBits` pointer. Without that library a Linux shard
|
||||
cannot read a sprite at all.
|
||||
files. ServUO targets `net48`, so on Linux it runs under Mono, and Mono's `System.Drawing` was a thin
|
||||
layer over **libgdiplus** — which the phase-2 decode path put in the **decode** itself and not merely
|
||||
the encode: `Ultima.Frame`, `Art.LoadStatic` and `LoadLand` write ARGB1555 through a `LockBits`
|
||||
pointer into a 16bpp `Bitmap` libgdiplus 6.1 cannot even create. Until #39 a Linux shard without that
|
||||
library could not read a sprite at all; #39 replaced those vendored decoders with managed ones and
|
||||
removed the dependency.
|
||||
|
||||
**Windows shard hosts need nothing.** `System.Drawing` ships with .NET Framework.
|
||||
|
||||
| Host | Get it with |
|
||||
|---|---|
|
||||
| Debian / Ubuntu | `sudo apt-get install libgdiplus` — in Debian since bullseye (6.0.4) and bookworm/trixie (6.1), and in Ubuntu universe |
|
||||
| Fedora / RHEL | `sudo dnf install libgdiplus` (EPEL or the Mono repository) |
|
||||
| Docker | `RUN apt-get update && apt-get install -y libgdiplus` in the shard image |
|
||||
| Alpine, or a distro with no package | Build from source. This is the awkward case, and it is worth avoiding by choosing a Debian-based image |
|
||||
|
||||
Upstream is <https://github.com/mono/libgdiplus>. **That repository was archived in March 2025** and
|
||||
is read-only; distributions still package and patch it, so installing it is a normal supported thing
|
||||
to do today, but nobody is maintaining it upstream. It is the strongest long-term argument for
|
||||
eventually moving extraction off `System.Drawing`.
|
||||
|
||||
**Its absence is not an error and never a crash.** The shard reports a named status on the source
|
||||
gate — the first call any import makes — so an operator meets this while setting the shard up rather
|
||||
than as an empty bestiary weeks later:
|
||||
|
||||
```
|
||||
imaging: { ok: false, code: "NO_IMAGING",
|
||||
reason: "This shard host cannot render images — Mono's System.Drawing needs
|
||||
libgdiplus. Install it (apt-get install libgdiplus) and re-run the
|
||||
import. Cliloc and atlas import are unaffected." }
|
||||
```
|
||||
|
||||
Clilocs and the ServUO tree files are genuinely unaffected: neither touches a pixel. The installer's
|
||||
`doctor` checks for this alongside its other host checks.
|
||||
Upstream <https://github.com/mono/libgdiplus> **was archived in March 2025** and is read-only — the
|
||||
strongest argument for the migration #39 completed. Clilocs and the ServUO tree files never touched a
|
||||
pixel and were never affected.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user