Skip to content

[Bug]: SVG Import #10421

@asturur

Description

@asturur

CheckList

  • I agree to follow this project's Code of Conduct
  • I have read and followed the Contributing Guide
  • I have read and followed the Issue Tracker Guide
  • I have searched and referenced existing issues and discussions
  • I am filing a BUG report.
  • I have managed to reproduce the bug after upgrading to the latest version
  • I have created an accurate and minimal reproduction

Version

6.0.2

In What environments are you experiencing the problem?

No response

Node Version (if applicable)

None

Link To Reproduction

Steps To Reproduce

  1. load the svg in the comment
  2. img does not load
<svg viewBox="0 0 745 1040" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
  xml:space="preserve">
  <image zaparoo-no-print="true" href="https://design.zaparoo.org/ZapTradingCard.png" width="745" height="1040">
  </image>
  <g transform="matrix(0.968254,0,0,1.98639,11.811,-63.9161)">
    <rect zaparoo-placeholder="main" zaparoo-fill-strategy="cover" stroke-dasharray="5 5" x="0" y="76.772"
      width="744.094" height="434.055" style="fill:none;stroke:red;stroke-width:.83px" />
  </g>
</svg>

Expected Behavior

href should work, but xlink:href is needed for fabric

Actual Behavior

href does not work you need to put xlink in front of href to work

<svg viewBox="0 0 745 1040" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
  xml:space="preserve">
  <image zaparoo-no-print="true" xlink:href="https://design.zaparoo.org/ZapTradingCard.png" width="745" height="1040">
  </image>
  <g transform="matrix(0.968254,0,0,1.98639,11.811,-63.9161)">
    <rect zaparoo-placeholder="main" zaparoo-fill-strategy="cover" stroke-dasharray="5 5" x="0" y="76.772"
      width="744.094" height="434.055" style="fill:none;stroke:red;stroke-width:.83px" />
  </g>
</svg>

Error Message & Stack Trace

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions