• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Icons in R"rawliteral

Q&A Forum › Category: ESP32 › Icons in R"rawliteral
0 Vote Up Vote Down
Willem asked 1 week ago

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

Question Tags: Embed icons in R"rawliteral
3 Answers
0 Vote Up Vote Down
Willem answered 1 week ago

Hi, I was helped by a friend who advised me to follow this:

  1. Convert the ICON using SVG Converter – Frontend Toolkit to HTML format (free!)
  2. 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&#8221; 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

0 Vote Up Vote Down
Sara Santos Staff answered 6 days ago

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

0 Vote Up Vote Down
Willem answered 5 days ago

Glad to be of help Sara,
All the best, Willem

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn LVGL: Build GUIs for ESP32 Projects – Version 1.5 July 7, 2025
  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.