Hello, thanks to you I have a ESP32 webserver active. It uses the R”rawliteral method to store the webpages.
In my webpage I use online icons, this works fine. But I would like them embedded into to R”rawliteral. Is that possible and how do I do this? The icons are also available as SVG.
Kind regards,
Willem Braat
Hi, I was helped by a friend who advised me to follow this:
- Convert the ICON using SVG Converter – Frontend Toolkit to HTML format (free!)
- Copy the code and add it to the body of the page.
The output from de converter looks like:
<svg xmlns=”http://www.w3.org/2000/svg” width=”50″ height=”50″ viewBox=”0 0 640 640″><path fill=”#74C0FC”
d=”M320 576c-106 0-192-86-192-192 0-91.2 130.2-274.1 166.6-323.5 5.9-8 15.2-12.5 25.2-12.5h.4c10 0
19.3 4.5 25.2 12.5C381.8 109.9 512 292.8 512 384c0 106-86 192-192 192zm-80-200c0-13.3-10.7-24-24-24s-24
10.7-24 24c0 75.1 60.9 136 136 136 13.3 0 24-10.7 24-24s-10.7-24-24-24c-48.6 0-88-39.4-88-88z”/></svg>
And this works perfect!!
If you have a converter-less option please let me know.
Kind regards, Willem
Hi.
Thanks for providing the solution.
In fact, I wasn’t familiar with this. So, I don’t think I would provide a better answer. Thank you.
Meanwhile, I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara