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

🐞 - Blank svg when loading into Figma #639

Closed
2 of 9 tasks
zach-browserless opened this issue Jul 24, 2024 · 4 comments
Closed
2 of 9 tasks

🐞 - Blank svg when loading into Figma #639

zach-browserless opened this issue Jul 24, 2024 · 4 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@zach-browserless
Copy link

Which @codeimage/* package(s) are the source of the bug?

Don't known / other

Please provide a screenshot or a video to a minimal reproduction of the bug

No response

Description

The exported .svg files open fine in a browser. But for some reason, when I import them into Figma they just show up as an empty box.

empty svg

Which browsers have you used?

  • Chrome
  • Firefox
  • Safari
  • Edge

Which operating systems have you used?

  • macOS
  • Windows
  • Linux
  • iOS
  • Android
@zach-browserless zach-browserless added the bug Something isn't working label Jul 24, 2024
@zach-browserless
Copy link
Author

I also tried dropping the svg into a compressor (https://vecta.io/nano) and it decided to take it from 291KB. Here's the export I'm attempting, I've tried changing some options like background vs no background, but same thing happens.
codeimage-snippet_24
to 66B

@riccardoperra
Copy link
Owner

riccardoperra commented Jul 24, 2024

Hi @zach-browserless , unfortunately this is an issue of the SVG export that relies on foreignObject, which figma doesn't support (I think due to their "security" constraints)

@KyleTryon
Copy link

This also happens in Adobe Illustrator

Copy link

stale bot commented Jan 4, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants