3 ms·
Is there a tool or some other way to easily encode a JPG image so it can be embedded into HTML? I know there is something like that, but is it easy? Could it b
by galaxyLogic 2y ago
Is there a tool or some other way to easily encode a JPG image so it can be embedded into HTML? I know there is something like that, but is it easy? Could it be made easier?
- throwanem 2y agoYou can convert it to base64 and inline it anywhere an image URL is accepted, eg <img src="data:image/jpeg;base64,abc123..." /> (Double-check the exact syntax and the MIME type before you use it; it's been a few years since I have, and this example is from perhaps imperfect memory.)
- galaxyLogic 2y agoThanks