Skip to content

Embed CanvasNet formats in SVG <image href> through a new Viewer package and pluggable image sources - #110

Merged
Malcolmnixon merged 5 commits into
mainfrom
feature/svg-image-resolver
Nov 5, 2026
Merged

Malcolmnixon merged 5 commits into
mainfrom
feature/svg-image-resolver

Conversation

@Malcolmnixon

Copy link
Copy Markdown
Member

Pull Request

Description

SVG diagrams can now embed other CanvasNet formats through <image href>: a rendered OpenSCAD model, a Vega-Lite chart, a nested SVG, a raster picture, or the first page of a PDF, PPTX or VSDX file. Each linked file is rendered at the size it is placed at, so vector sources stay sharp.

The cross-format logic lives in the libraries, not the tool, so in-process users get the same behavior:

  • Core (DemaConsulting.CanvasNet.ImageSources):

    • The contracts IImageResolver and IImageSource. A source claims links by file extension or by URI scheme.
    • ImageSourceRequest and ImageSourceResult, and an immutable ImageSourceSet in which a later source wins.
    • FolderImageResolver, which does all the shared work:
      • it accepts relative paths and file: URIs, with the query and fragment stripped first;
      • it uses the existing file sandbox, and refuses absolute, drive, UNC, .., %00, ::$DATA and symlink escapes;
      • http and https stay unresolved unless a caller registers a source for them;
      • it limits depth to 4 and embeds to 64, and detects cycles;
      • it enforces a decoded-pixel budget (64 MP by default, nested embeds share it, each side clamped to 8192), charged before allocation;
      • it collects diagnostics and echo output.
    • RasterImageSource, which reads the picture size from the header before decoding.
  • Providers in each format package: SvgImageSource, ScadImageSource, VegaLiteImageSource, and Pdf/Pptx/VsdxImageSource for the first page or slide.

  • SVG: SvgLoadOptions.ImageResolver. It is null by default, which keeps today's behavior: only data: links are drawn.

  • New package DemaConsulting.CanvasNet.Viewer, the entry point for every CanvasNet format. It offers:

    • CanvasNetViewer.ImageSources and Extensions;
    • CreateImageResolver(folder[, extraSources]), where caller sources win, so users can add their own sources (a live camera via a camera:// scheme, for example) or override a built-in one;
    • Render(path | stream), which returns a ViewerImage, with a MaxDecodedPixels option.

    Future formats, such as Mermaid, get registered here.

  • Tool: it uses Viewer for SVG inputs, rooted at the input file's folder.

    • The new warnings are svg-image-unresolved and svg-image-too-large. --strict turns them into unsupported-feature errors.
    • Embedded diagnostics are reported with their origin.
    • The svg help topic lists the file types that can be linked, with an --example embed. A drift test ties that list to CanvasNetViewer.Extensions. The scad, vega-lite, formats and render help point to it.

Example: an SVG diagram embedding a PNG logo, a .scad bushing (transparent) and a .vl.json chart, rendered at 2×:

diagram

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code quality improvement

Related Issues

User request: put 3D OpenSCAD renders and other CanvasNet outputs into 2D SVG diagrams, and make that composition available to library users, extensible with their own sources.

Pre-Submission Checklist

Before submitting this pull request, ensure you have completed the following:

Build and Test

  • Code builds successfully and all tests pass: pwsh ./build.ps1 ran 47,979 tests with 0 failed and 33 skipped (symlink tests that need a privilege this host lacks, plus tests that were already skipped). After the final Viewer option: Viewer.Tests 69 passed, 3 skipped.
  • Code produces zero warnings

Code Quality

  • New code has appropriate XML documentation comments
  • Static analyzer warnings have been addressed

Quality Checks

Please run the following checks before submitting:

  • All linters pass: pwsh ./lint.ps1 passed, along with the Pandoc harness and render-images.ps1 -Check

Testing

  • Added unit tests for new functionality:
    • the sandbox, query and fragment handling, and %23
    • the scheme and extension precedence, a custom made-up extension and an override of a built-in
    • live frames
    • depth, count and cycle limits
    • the pixel budget: a header-only 8192×8192 PNG is refused without decoding, the budget accumulates across embeds, and every provider checks it before allocating
    • the tool's --strict behavior
    • the help drift test
  • Updated existing tests if behavior changed (no existing golden changed)
  • All tests follow the AAA (Arrange, Act, Assert) pattern
  • Test coverage is maintained or improved

Documentation

  • Updated README.md (if applicable)
  • Updated docs/ documentation (if applicable)
  • Added code examples for new features (if applicable)
  • Updated requirements.yaml (if applicable)

Additional Notes

  • Dispatch is by file name, so a plain .json file with a Vega-Lite $schema cannot be embedded; use .vl.json.
  • Follow-ups:
    • Move the tool's whole render pipeline onto Viewer.
    • Let an embedded diagnostic carry the name of the file that embedded it.
  • Backlog, pre-existing: a check/open symlink race in SandboxedFileResolver, which Scad include and Vega-Lite data.url already use.

Copilot AI lite review requested due to automatic review settings November 4, 2026 18:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Active moderate and critical findings remain around inconsistent dimension handling and incomplete MaxDecodedPixels accounting, including a path that can permit oversized allocations before refusal.

3 open issues
What changed in this PR

This pull request adds cross-format image embedding for SVG documents and introduces the DemaConsulting.CanvasNet.Viewer package as a unified, extensible rendering entry point.

Changes:

  • Adds pluggable image-source contracts, sandboxed resolution, recursion/resource limits, diagnostics, and pixel-budget enforcement.
  • Adds SVG, raster, PDF, PPTX, VSDX, OpenSCAD, and Vega-Lite image providers.
  • Integrates SVG embedding into the CLI and updates tests, help, documentation, requirements, and architecture models.

The reviewed changes contain unresolved issues involving pixel-budget accounting, Viewer sizing, and collection immutability. This pull request requires changes.

File Summary
test/​DemaConsulting.CanvasNet.Viewer.Tests/​DemaConsulting.CanvasNet.Viewer.Tests.csproj Adds Viewer test-project configuration.
test/​DemaConsulting.CanvasNet.Tool.Tests/​FixtureFactory.DeclaredPng.cs Adds header-only PNG test fixtures.
test/​DemaConsulting.CanvasNet.Tool.Tests/​DemaConsulting.CanvasNet.Tool.Tests.csproj References Viewer from tool tests.
test/​DemaConsulting.CanvasNet.Tool.Tests/​CanvasNetToolTests.SvgEmbed.cs Tests tool-level SVG embedding.
test/​DemaConsulting.CanvasNet.Tests/​ImageSources/​PngHeaderFixtures.cs Provides PNG budget-test fixtures.
test/​DemaConsulting.CanvasNet.Svg.Tests/​SvgSystemIntegrationTests.cs Tests the public SVG resolver integration.
src/​DemaConsulting.CanvasNet/​ImageSources/​NamespaceDoc.cs Documents the image-source namespace.
src/​DemaConsulting.CanvasNet/​ImageSources/​ImageSourceResult.cs Defines rendered image-source results.
src/​DemaConsulting.CanvasNet/​ImageSources/​ImageSourceException.cs Defines image-source failures.
src/​DemaConsulting.CanvasNet/​ImageSources/​ImageSourceDiagnostic.cs Defines image-source diagnostics.
src/​DemaConsulting.CanvasNet/​ImageSources/​ImageSourceBudgetException.cs Defines pixel-budget failures.
src/​DemaConsulting.CanvasNet/​ImageSources/​ImageDiagnosticSeverity.cs Defines diagnostic severity values.
src/​DemaConsulting.CanvasNet/​ImageSources/​IImageResolver.cs Defines the image resolver contract.
src/​DemaConsulting.CanvasNet/​ImageSources/​FolderImageResolverOptions.cs Defines resolver limits and options.
src/​DemaConsulting.CanvasNet/​ImageSources/​EmbeddedImage.cs Records embedded-image metadata.
src/​DemaConsulting.CanvasNet.Vsdx/​VsdxImageSource.cs Provides VSDX image rendering.
src/​DemaConsulting.CanvasNet.Viewer/​ViewerRenderOptions.cs Defines Viewer render options.
src/​DemaConsulting.CanvasNet.Viewer/​ViewerImage.cs Defines the disposable Viewer result.
src/​DemaConsulting.CanvasNet.Viewer/​NamespaceDoc.cs Documents the Viewer namespace.
src/​DemaConsulting.CanvasNet.Viewer/​DemaConsulting.CanvasNet.Viewer.csproj Adds the Viewer package and dependencies.
src/​DemaConsulting.CanvasNet.Tool/​Imaging/​SourceLoader.Svg.cs Integrates Viewer-based SVG loading.
src/​DemaConsulting.CanvasNet.Tool/​DemaConsulting.CanvasNet.Tool.csproj References the Viewer package.
src/​DemaConsulting.CanvasNet.Tool/​Commands/​RenderCommand.cs Documents SVG linked-image rendering.
src/​DemaConsulting.CanvasNet.Tool/​Commands/​HelpTopics.cs Adds help snippet support.
src/​DemaConsulting.CanvasNet.Tool/​Commands/​Help/​vega-lite.json Links Vega-Lite help to SVG embedding.
src/​DemaConsulting.CanvasNet.Tool/​Commands/​Help/​scad.json Links OpenSCAD help to SVG embedding.
src/​DemaConsulting.CanvasNet.Tool/​Commands/​Help/​json.json Updates JSON diagnostic documentation.
src/​DemaConsulting.CanvasNet.Tool/​Commands/​Help/​Examples/​svg-diagram.svg Adds an SVG embedding example.
src/​DemaConsulting.CanvasNet.Tool/​Commands/​Help/​errors.json Documents embedding diagnostics and strict mode.
src/​DemaConsulting.CanvasNet.Tool/​Commands/​DiscoveryCommands.cs Adds SVG embedding to format help.
src/​DemaConsulting.CanvasNet.Svg/​SvgLoadOptions.cs Adds opt-in external image resolution.
src/​DemaConsulting.CanvasNet.Svg/​SvgImageSource.cs Provides nested SVG rendering.
src/​DemaConsulting.CanvasNet.Svg/​SvgCodec.Filters.FeImage.cs Preserves resolver behavior for feImage.
src/​DemaConsulting.CanvasNet.Svg/​SvgCodec.Elements.cs Stores the resolver in SVG render context.
src/​DemaConsulting.CanvasNet.Svg/​SvgCodec.cs Threads resolver options through SVG rendering.
src/​DemaConsulting.CanvasNet.Pdf/​PdfImageSource.cs Provides first-page PDF rendering.
requirements.yaml Adds image-source and Viewer requirements.
README.md Documents linked images and Viewer usage.
docs/​verification/​introduction.md Adds ImageSources and Viewer verification scope.
docs/​verification/​definition.yaml Registers verification documents.
docs/​verification/​canvas-net/​image-sources/​raster-image-source.md Defines raster-source verification.
docs/​verification/​canvas-net/​image-sources.md Defines ImageSources verification.
docs/​verification/​canvas-net-vsdx/​vsdx-document.md Defines VSDX image-source scenarios.
docs/​verification/​canvas-net-vsdx.md Updates VSDX verification.
docs/​verification/​canvas-net-viewer/​canvas-net-viewer.md Defines Viewer verification.
docs/​verification/​canvas-net-tool/​imaging/​source-loader.md Defines SVG loader verification.
docs/​verification/​canvas-net-tool/​commands/​render-command.md Defines render-command verification.
docs/​verification/​canvas-net-tool.md Defines tool-level embedding verification.
docs/​verification/​canvas-net-svg.md Defines SVG resolver verification.
docs/​verification/​canvas-net-scad/​scad-document.md Defines OpenSCAD image-source scenarios.
docs/​verification/​canvas-net-pptx/​pptx-document.md Defines PPTX image-source scenarios.
docs/​verification/​canvas-net-pptx.md Updates PPTX verification.
docs/​verification/​canvas-net-pdf/​pdf-document.md Defines PDF image-source scenarios.
docs/​verification/​canvas-net-pdf.md Updates PDF verification.
docs/​user_guide/​definition.yaml Registers the Viewer guide.
docs/​user_guide/​canvas-net-vsdx.md Documents VSDX embedding.
docs/​user_guide/​canvas-net-scad.md Documents OpenSCAD embedding.
docs/​user_guide/​canvas-net-pptx.md Documents PPTX embedding.
docs/​user_guide/​canvas-net-pdf.md Documents PDF embedding.
docs/​sysml2/​views/​design-views.sysml Adds Viewer and ImageSources views.
docs/​sysml2/​model/​canvas-net/​image-sources/​raster-image-source.sysml Models raster image sources.
docs/​sysml2/​model/​canvas-net/​image-sources/​image-source-contract.sysml Models image-source contracts.
docs/​sysml2/​model/​canvas-net/​image-sources/​folder-image-resolver.sysml Models folder resolution.
docs/​sysml2/​model/​canvas-net/​image-sources.sysml Models the ImageSources subsystem.
docs/​sysml2/​model/​canvas-net.sysml Adds ImageSources to the core system.
docs/​sysml2/​model/​canvas-net-vsdx.sysml Models VSDX image-source integration.
docs/​sysml2/​model/​canvas-net-viewer/​canvas-net-viewer.sysml Models the Viewer unit.
docs/​sysml2/​model/​canvas-net-viewer.sysml Models the Viewer system.
docs/​sysml2/​model/​canvas-net-vega-lite.sysml Models Vega-Lite image-source integration.
docs/​sysml2/​model/​canvas-net-tool/​commands/​help-topics.sysml Models linked-image help behavior.
docs/​sysml2/​model/​canvas-net-tool.sysml Models the tool-to-Viewer dependency.
docs/​sysml2/​model/​canvas-net-svg.sysml Models SVG image-source integration.
docs/​sysml2/​model/​canvas-net-scad.sysml Models OpenSCAD image-source integration.
docs/​sysml2/​model/​canvas-net-pptx.sysml Models PPTX image-source integration.
docs/​sysml2/​model/​canvas-net-pdf.sysml Models PDF image-source integration.
docs/​reqstream/​canvas-net/​image-sources/​raster-image-source.yaml Adds raster-source requirements.
docs/​reqstream/​canvas-net.yaml Adds core linked-image requirements.
docs/​reqstream/​canvas-net-vsdx/​vsdx-document.yaml Adds VSDX unit requirements.
docs/​reqstream/​canvas-net-vsdx.yaml Adds VSDX system requirements.
docs/​reqstream/​canvas-net-viewer/​platform-requirements.yaml Adds Viewer platform requirements.
docs/​reqstream/​canvas-net-viewer/​canvas-net-viewer.yaml Adds Viewer unit requirements.
docs/​reqstream/​canvas-net-viewer.yaml Adds Viewer system requirements.
docs/​reqstream/​canvas-net-vega-lite/​vega-lite-document.yaml Adds Vega-Lite unit requirements.
docs/​reqstream/​canvas-net-vega-lite.yaml Adds Vega-Lite system requirements.
docs/​reqstream/​canvas-net-tool/​imaging/​source-loader.yaml Adds source-loader requirements.
docs/​reqstream/​canvas-net-tool/​commands/​render-command.yaml Adds render-command requirements.
docs/​reqstream/​canvas-net-tool/​commands/​help-topics.yaml Adds help-topic requirements.
docs/​reqstream/​canvas-net-tool/​commands.yaml Registers linked-image help requirements.
docs/​reqstream/​canvas-net-tool.yaml Adds tool embedding requirements.
docs/​reqstream/​canvas-net-svg.yaml Adds SVG resolver requirements.
docs/​reqstream/​canvas-net-scad/​scad-document.yaml Adds OpenSCAD unit requirements.
docs/​reqstream/​canvas-net-scad.yaml Adds OpenSCAD system requirements.
docs/​reqstream/​canvas-net-pptx/​pptx-document.yaml Adds PPTX unit requirements.
docs/​reqstream/​canvas-net-pptx.yaml Adds PPTX system requirements.
docs/​reqstream/​canvas-net-pdf/​pdf-document.yaml Adds PDF unit requirements.
docs/​reqstream/​canvas-net-pdf.yaml Adds PDF system requirements.
docs/​design/​definition.yaml Registers ImageSources and Viewer designs.
docs/​design/​canvas-net/​image-sources/​raster-image-source.md Documents raster-source design.
docs/​design/​canvas-net/​files.md Documents sandboxed file usage.
docs/​design/​canvas-net.md Adds ImageSources to the architecture.
docs/​design/​canvas-net-vsdx/​vsdx-document.md Documents VSDX image-source design.
docs/​design/​canvas-net-vsdx.md Documents VSDX package integration.
docs/​design/​canvas-net-viewer/​canvas-net-viewer.md Documents Viewer unit design.
docs/​design/​canvas-net-tool/​commands/​help-topics.md Documents linked-image help design.
docs/​design/​canvas-net-tool/​commands/​discovery-commands.md Documents format-help changes.
docs/​design/​canvas-net-tool.md Documents tool-to-Viewer integration.
docs/​design/​canvas-net-svg.md Documents SVG resolver integration.
docs/​design/​canvas-net-scad/​scad-document.md Documents OpenSCAD image-source design.
docs/​design/​canvas-net-scad.md Documents OpenSCAD package integration.
docs/​design/​canvas-net-pptx/​pptx-document.md Documents PPTX image-source design.
docs/​design/​canvas-net-pptx.md Documents PPTX package integration.
docs/​design/​canvas-net-pdf/​pdf-document.md Documents PDF image-source design.
docs/​design/​canvas-net-pdf.md Documents PDF package integration.
CanvasNet.slnx Adds Viewer source and test projects.
AGENTS.md Updates project and test-project guidance.
.github/​workflows/​build.yaml Includes Viewer in build validation.

Review effort: Lite

Malcolm Nixon and others added 2 commits November 4, 2026 14:46
Add an explicit, opt-in image resolver to the SVG codec and a shared core
image-source contract (IImageSource, FolderImageResolver, ImageSourceSet,
RasterImageSource) with sandboxed file hrefs, query/fragment handling,
URI-scheme claiming and a per-render decoded-pixel budget. Format packages
ship thin providers (Svg, Scad, VegaLite, Pdf, Pptx, Vsdx) and the new
DemaConsulting.CanvasNet.Viewer package composes them. The canvasnet tool
wires the Viewer for SVG inputs, sandboxed to the input folder, with the
svg-image-unresolved and svg-image-too-large warnings; help topics, user
guides and compliance artifacts updated.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
After #109 the Scad library picks the view (isometric for 3D, top-down for flat 2D, the model's own $vp* variables), so ScadImageSource no longer forces an isometric camera.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Malcolmnixon
Malcolmnixon force-pushed the feature/svg-image-resolver branch from fed3a6f to ef8b36d Compare November 4, 2026 20:30
Copilot AI lite review requested due to automatic review settings November 4, 2026 20:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Approval is blocked by two moderate findings exposing mutable extension metadata through read-only interfaces, plus a malformed control character in the new documentation.

3 open issues
3 resolved since last review

Review effort: Lite

Built-in sources, ImageSourceSet, FolderImageResolver and ViewerImage no longer
hand out arrays or lists that callers can cast and mutate. Remove a stray
control character from the Scad design doc.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings November 4, 2026 21:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Active critical issues leave the documented pixel and image-count limits unenforced before allocations, with an additional result immutability issue still requiring correction.

No open issues 🎉

4 previously missed issues

In code that hasn't changed since last review

High severity Enforce image-count limits before reading embedded files

src/​DemaConsulting.CanvasNet/​ImageSources/​FolderImageResolver.cs:440

_sandbox.Resolve reads and caches the embedded file before CheckLimits runs below. In a stream-backed top-level render the top-level bytes never go through this sandbox, but the constructor still reserves MaxImages + 1 sandbox files for that top-level case; consequently MaxImages = 0 still reads one embedded file (and MaxImages = 1 can read a second) before rejecting it. This violates the documented image/file-count bound and permits unnecessary reads of up to the sandbox file limit. Check the count limit before opening when possible, and distinguish path renders (which consume the extra top-level file slot) from stream renders; add a regression test for MaxImages = 0 with a large embedded file.

High severity Reserve the parent surface before rendering nested images

src/​DemaConsulting.CanvasNet/​ImageSources/​FolderImageResolver.cs:628

For a natural-size direct render, PrepareDirect sets reserved to zero, so RenderDirect calls the source before charging the top-level surface. SvgImageSource allocates its output surface before resolving nested <image> elements; those nested images can therefore consume the whole budget, and the resolver only discovers the overage after both the nested surfaces and the parent surface have been allocated (then disposes/throws). This violates the documented pre-allocation pixel cap for CanvasNetViewer.Render(path) without Width/Height. Reserve the natural output before nested rendering (or introduce a two-phase size/reservation contract) so the parent and nested allocations share the live budget.

High severity Check live budget before approving source allocations

src/​DemaConsulting.CanvasNet/​ImageSources/​ImageSourceRequest.cs:197

RemainingPixels is captured when the request is built, but a source can call request.Resolver.Resolve(...) before it allocates its own surface. Those nested calls consume the resolver's live budget without changing this request's snapshot, so a subsequent EnsureWithinBudget can approve an allocation that is already too large (for example, after a 6,000-pixel nested image, a request with 10,000 reserved and 10,000 remaining can still approve an 18,000-pixel surface). The resolver only notices after the source has allocated and returned it, then disposes it, so the documented before-allocation cap is not enforced for pluggable sources. Make the budget check consult live remaining capacity or provide a reservation/lease for allocations made after nested resolution.

Medium severity Snapshot caller-owned lists to preserve result immutability

src/​DemaConsulting.CanvasNet/​ImageSources/​ImageSourceResult.cs:42

IReadOnlyList<T> does not make the referenced collection immutable. A custom source can assign a mutable List<ImageSourceDiagnostic> (or List<string> to Echo) and mutate it after publishing the result, contradicting this record's documented immutability/thread-sharing guarantee. Copy and wrap these lists when the result is initialized, or otherwise expose immutable snapshots rather than storing caller-owned references.

3 resolved since last review

Review effort: Lite

Sources charge the live budget when they allocate; the resolver charges only
the excess of a returned surface and refunds failed requests. Check the depth
and image-count limits before reading an embedded file, and make
ImageSourceResult lists immutable snapshots.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings November 4, 2026 22:40
@Malcolmnixon

Copy link
Copy Markdown
Member Author

Review follow-up (632bdf8) for the four "previously missed" items — the pixel budget was redesigned rather than patched:

  • Live budget (ImageSourceRequest / FolderImageResolver): each resolver owns one live ImageBudget shared by every request, nested ones included. A source calls request.EnsureWithinBudget(w, h) right before each allocation; that charges the live budget at that moment or throws ImageSourceBudgetException (charging nothing). RemainingPixels reads live. After the source returns, the resolver charges only the excess of the returned surface over what the source already charged, refusing and disposing it if that does not fit; a refused or failed request is refunded. There is no snapshot and no up-front reservation any more (ReservedPixels is removed). Regression tests: 6,000-pixel nested + 18,000-pixel parent is refused before the parent allocation; a natural-size direct SVG render whose nested picture exceeds the live remainder is refused before the nested allocation; a non-charging source returning an oversized surface is refused.
  • Image-count limit before reading: depth and image-count checks now run before the sandbox opens an embedded file (only the cycle check follows the read); the sandbox file limit distinguishes path renders (MaxImages + 1) from stream renders (MaxImages). Test: MaxImages = 0 never reads the embedded file.
  • ImageSourceResult immutability: Diagnostics and Echo are copied into read-only snapshots on init.

Full build.ps1: 48,645 tests, 0 failed, 0 warnings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Active correctness and safety issues remain, including undisposed surfaces on resolver failures and an empty-root path that unintentionally broadens the resolver sandbox.

3 open issues

Review effort: Lite

… throws, document nested SVG data URIs as unsupported

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings November 4, 2026 23:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Human assessment is needed because the change contains critical hidden findings involving an unhandled PDF-rendering resource leak and inconsistent folder sandbox validation.

No open issues 🎉

3 resolved since last review

Review effort: Lite

@Malcolmnixon
Malcolmnixon merged commit 4b367e9 into main Nov 5, 2026
16 checks passed
@Malcolmnixon
Malcolmnixon deleted the feature/svg-image-resolver branch November 5, 2026 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants