-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Paste SVG #93
Comments
I am using this tool to edit and improve the SVGs and wish that I can just paste the exports directly example
|
https://front-end.io/svg2base64/
|
Yes, I utilize such tools for performing the conversion, although I would prefer if it were not required and the conversion could be done directly on the settings page. This would simply involve linking to a JavaScript script. |
svg is just a file format, so it should be imported by "↑" button beside input. You can create a new file like "icon.svg" and paste the html code in. |
Typically, the SVG is not a separate file. It is not possible to save it without an extension or use the DevTools to copy the element and paste it in a text document, then rename it to .svg. This process is cumbersome. In my estimation, SVG quality is much better than .ico or .png and tends to use fewer resources. However, that is another subject. The Github icon, for example, requires the steps mentioned above to obtain it. Most of the icons automatically grabbed by SJ are blurry or of very low quality… Certainly, you are more knowledgeable and I may be mistaken. |
Create a bookmarklet, paste the under code into it. Right-click the target svg element and then execute the bookmarklet. javascript:(()=>{let svg=document.activeElement&&document.activeElement.querySelector('svg');if(svg){navigator.clipboard.writeText('data:image/svg+xml;base64,'+btoa(unescape(encodeURIComponent(new XMLSerializer().serializeToString(svg)))));alert("copy over!")}})() |
Hi,
I discovered that occasionally the search engine's logo (page) is not captured accurately. When I attempt to obtain a link for it from Dev Tools, it appears as a plain SVG embedded in the HTML, rather than a clickable link. Consequently, I am unable to save it directly without employing an extension or tool. Additionally, it is impractical to save the icon then add it… I wonder if it is possible to make it support pasting the
<svg>...</svg>
directly in the field and have it work this way?example site :
https://odysee.com/
The text was updated successfully, but these errors were encountered: