BeamerReveal

 view release on metacpan or  search on metacpan

share/templates/html/image-embedded.html  view on Meta::CPAN

<div class="absolute" style="left: ---X---;
			     top: ---Y---;
			     width: 100%;
			     height: 100%;
			     ">
  <img id="---IMAGEID---"
       style="margin: 0;
	      display: block;
	      width: ---W---;
	      height: ---H---;
	      object-fit: ---FIT---;">
  <script type="module">
    const encoded = `
---IMAGEEMBEDDEDB64---`;
    const bytes = Uint8Array.from(atob(encoded), c =>c.charCodeAt(0));
    const blob = new Blob([bytes], { type: "---MIMETYPE---" });
    
    const image = document.getElementById("---IMAGEID---");
    image.src = URL.createObjectURL(blob);
  </script>
</div>



( run in 0.460 second using v1.01-cache-2.11-cpan-5511b514fd6 )