HTML Export - embedded images as base64 strings?

General TRichView support forum. Please post your questions here
Post Reply
edwinyzh
Posts: 104
Joined: Sun Jun 05, 2022 2:22 pm

HTML Export - embedded images as base64 strings?

Post by edwinyzh »

I'd suggest to add the option to use base64 strings for storing images in an exported html page.

Example:

Code: Select all

<div>
    <p>Taken from wikpedia</p>
    <img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUA
AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
    9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" />
</div>
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: HTML Export - embedded images as base64 strings?

Post by Sergey Tkachenko »

Currently, it is possible using events: https://www.trichview.com/forums/viewtopic.php?t=7191

But I agree, it makes sense to add this option.
edwinyzh
Posts: 104
Joined: Sun Jun 05, 2022 2:22 pm

Re: HTML Export - embedded images as base64 strings?

Post by edwinyzh »

Thanks for the link! In the future I might need very flexible html export options and I hope the events provided are flexible enough ;)
Post Reply