@@Jens
vor einiger Zeit hatte ich in einem Codepen einen langen Text <img .....> gesehen, der im Ergebnis ein Image erzeugte.
Ging es da um eine Vektorgrafik oder eine Rastergrafik?
Wo finde ich solche Texte zur Verwendung in Codepen u.a. bzw. wie kann ich ein Bild in eine Textfolge umwandeln?
SVG kannst du mit einigen Escapes als Data-URI notieren, siehe Codepen.
Nachtrag: Als <img> wäre das aber sinnlos, da kann man das <svg> normal notieren und hat das mit im DOM.
Rastergrafiken sollte man i.A. nicht base64-codiert in Data-URIs packen, da das ihre Größe aufbläht.
🖖 Live long and prosper
--
“In my home, the America I love, the America I've written about, that has been a beacon of hope and liberty for 250 years, is currently in the hands of a corrupt, incompetent and treasonous administration. Tonight, we ask all who believe in democracy and the best of our American spirit, to rise with us, raise your voices against authoritarianism, and let freedom reign.”
— Bruce Springsteen, Manchester 2025-05-14
“In my home, the America I love, the America I've written about, that has been a beacon of hope and liberty for 250 years, is currently in the hands of a corrupt, incompetent and treasonous administration. Tonight, we ask all who believe in democracy and the best of our American spirit, to rise with us, raise your voices against authoritarianism, and let freedom reign.”
— Bruce Springsteen, Manchester 2025-05-14