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

svg option #75

Open
beyaz opened this issue Jul 10, 2023 · 2 comments
Open

svg option #75

beyaz opened this issue Jul 10, 2023 · 2 comments

Comments

@beyaz
Copy link

beyaz commented Jul 10, 2023

is there any option export images as svg base64 string ?
just assigned to src property of img tag

@bernaferrari
Copy link
Owner

Yes, but that's complex. I can't differentiate an svg from png. Sometimes it is a group of vectors, then it is easy, but if there are frames or rectangles mixed together, what do I do? I never solved this.

Still, I want something like a export to code sandbox where I would do this.

@beyaz
Copy link
Author

beyaz commented Jul 17, 2023

If you have decided that an element is a picture, you can go something like this.
As you know, we can export as svg or png by selecting the export option in the right corner of Figma program.
In fact, the image appears as base64 in the preview section.

Maybe you can trigger these steps automatically in the background and get the base64 format of that picture.

image

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

No branches or pull requests

2 participants