fix(bridge): decode item and land art without GDI+ (#39, 2 of 2) #43
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/asset-bridge-gdiplus-art"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What and why
servuo-plugins#39, PR 2 of 2 — finishes the Asset Bridge's GDI+-free migration for the itemand land art plane. On a Linux/Mono shard the vendored
Art.LoadStatic/LoadLandbuild a 16bppBitmapthat libgdiplus 6.1 cannot create (NotImplemented), so every static and land picture failedbefore a pixel was read. PR 1 (#42) did this for the body catalogue; with this PR the whole Asset
Bridge needs no libgdiplus at all.
Changes (overlay only)
BridgeArtMul.cs(new) — hand-writtenart.mulstatic + land decoder to ARGB1555, mirroring thevendored
LoadStaticrun loop andLoadLand's 44×44 diamond, with the record-and-canvas bounds thevendored writers lack. No
System.Drawing, noBitmap.BridgeArt.cs—Rendernow decodes throughBridgeArtMuland hues throughBridgeHue(overhues.mul+ thetiledata.mulPartialHueflag) intoBridgePng, via a sharedTryArtPixelshelper the parity harness drives. Removed: the GDI+
Bitmap/ApplyTo/dispose path, the imaginggate, and the
Files.CacheDatare-check inTryHue(a key now decodes its own fresh buffer thatnothing aliases). Added
RunArtParity, the comparison harness.BridgeAssets.cs— retireBitmapToPng(its last caller) and the imaging probe/field machinery;assets.sourcesno longer carries animagingfield;System.Drawingusings dropped.NO_IMAGINGis retired with the GDI+ it guarded.
Files.CacheDatastays off, now only so the parity oracle'svendored decode returns fresh bitmaps.
BridgeArtParity.cs(new) — the[BridgeArtParity]GM command /BRIDGE_ART_PARITY=1boot gate(the vendored oracle; the only art file that still touches
System.Drawing).BridgeAnimParity.cs— a doc reference fixed, and the oracle now also treats a totally-absentlibgdiplus (
DllNotFound/TypeInitialization) as "oracle unavailable".Contract
Overlay-only; no
PROTOCOL_VERSIONbump (overlay.tomlunchanged). The only wire change is theremoval of the additive
imagingfield fromassets.sources; the website tolerates its absence(every read is guarded by
sources.imaging &&, soNO_IMAGINGsimply never fires). The spec isupdated in the paired docs PR. PNG bytes/sha256 for art change (new managed encoder, as in PR 1), so
the site re-fetches on the next warm/force — expected.
The now-dead
NO_IMAGINGUI/model in module-uo, the installerdoctorlibgdiplus row, and therunicgateway.com docs are each tracked in a follow-up issue in their own repo.
Verification
dotnet buildof the deployed tree: 0 warnings / 0 errors.[BridgeArtParity], run headless):MISMATCHED 0 MISSED 0 EXTRA 0. Everyserved picture is pixel-identical to the vendored decode.
oracle throws
NotImplemented(the #39 bug) and the managed path produced all 43,433 + 39,189.Paired with docs PR (
docs/asset-bridge-gdiplus-art). Closes the art half of #39.🤖 Generated with Claude Code
https://claude.ai/code/session_014HJEmcaKvWQ8LsnXHKha5y