Page 1 of 1

HTML Export - embedded images as base64 strings?

Posted: Thu Jun 23, 2022 9:12 am
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>

Re: HTML Export - embedded images as base64 strings?

Posted: Thu Jun 23, 2022 12:36 pm
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.

Re: HTML Export - embedded images as base64 strings?

Posted: Thu Jun 23, 2022 3:52 pm
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 ;)