Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: SVG Import #10421

Open
7 tasks done
asturur opened this issue Jan 30, 2025 · 1 comment
Open
7 tasks done

[Bug]: SVG Import #10421

asturur opened this issue Jan 30, 2025 · 1 comment

Comments

@asturur
Copy link
Member

asturur commented Jan 30, 2025

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

@asturur asturur self-assigned this Jan 30, 2025
@asturur asturur removed their assignment Jan 30, 2025
@asturur
Copy link
Member Author

asturur commented Jan 30, 2025

If someone has time and want to try this should be an easy fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant