SVG с Base64 не отображается должным образом на холсте HTML 5 в Edge в некоторых сценариях - PullRequest
1 голос
/ 06 марта 2019

Я хочу создать изображение элемента DOM, содержащего изображения base64. Для этого я преобразовываю элемент DOM в SVG, а затем рисую этот SVG на холсте и получаю из него base64.

Замечено, что элемент HTML с изображением меньшего размера отображается правильно, а элемент с изображением большего размера не отображается на холсте в Edge .

Вот фрагмент для того же:

<html>
  <body>
    <div id="content1">
      <img id="smallImg" style="width: 200px; height: 150px;" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4gIcSUNDX1BST0ZJTEUAAQEAAAIMbGNtcwIQAABtbnRyUkdCIFhZWiAH3AABABkAAwApADlhY3NwQVBQTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWxjbXMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAApkZXNjAAAA/AAAAF5jcHJ0AAABXAAAAAt3dHB0AAABaAAAABRia3B0AAABfAAAABRyWFlaAAABkAAAABRnWFlaAAABpAAAABRiWFlaAAABuAAAABRyVFJDAAABzAAAAEBnVFJDAAABzAAAAEBiVFJDAAABzAAAAEBkZXNjAAAAAAAAAANjMgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB0ZXh0AAAAAElYAABYWVogAAAAAAAA9tYAAQAAAADTLVhZWiAAAAAAAAADFgAAAzMAAAKkWFlaIAAAAAAAAG+iAAA49QAAA5BYWVogAAAAAAAAYpkAALeFAAAY2lhZWiAAAAAAAAAkoAAAD4QAALbPY3VydgAAAAAAAAAaAAAAywHJA2MFkghrC/YQPxVRGzQh8SmQMhg7kkYFUXdd7WtwegWJsZp8rGm/fdPD6TD////bAIQABQYGBwkHCgsLCg0ODQ4NExIQEBITHRUWFRYVHSsbIBsbIBsrJ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4mGTthTuPruKhtINSMI1DIuFbAyAfpSRAZPfGM09tE0iOygsgOk/TPNdd8FCeQzW8ioxLNIXJ9RJz24ojBO+fKrYYHAODnBq5vxKnJyex3/eui9Dm6jIyxyIukZYt2H/asOnw26ZVFV2UfE0bKWA5ArgDFfFIyD25pJ0JO9XMEdxA8TglHUqwBxkH7V4q6QlndAw20kcBGkMxyGbnbn9/P4IsnaeSdZIxpGnSfdvvn7VFG2N2yfyGBTzBT6s7fSrm+IkEaSoCc53327U/UEQrqwM7AY3/AEqCTK5FfiDdN/TQ/DOnd9edieMefpjXxuVjtZHV5Dp9LFc/fHaopyxjVm32yBxnvipfWkmWxnjJ4FSGL4jMBknCI2dJyBz9jRspJdIk/UYOx/arWIxxqBk/nz/uvGF5ev1KSKUkRoQY0zkYI936+eGeWGQPG5RhwQcGvDvU4dVxPczHWB72bt2CiklDxodOAoVd/sMk1JZRNPoIBXRt96ggCKAzd/SSc5H0zS9QsVibF1EAoJOHBIA5q4leSZ3dy7FiSx5P5/IRgrA7HBzirPxZbtGomVg5ODp9ox3q38YQS3cUb/y4gnuYd+2rHbFX/jeIRlII9TLLj1bqVB5BGOavbkXF1LNoCa3LaQc4z8liM0cjBovkZoHJ5+Ufcaycc13o80nt8v8A/9k=">
    </div>
    <div id="content2">
      <img id="bigImg" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4gIcSUNDX1BST0ZJTEUAAQEAAAIMbGNtcwIQAABtbnRyUkdCIFhZWiAH3AABABkAAwApADlhY3NwQVBQTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWxjbXMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAApkZXNjAAAA/AAAAF5jcHJ0AAABXAAAAAt3dHB0AAABaAAAABRia3B0AAABfAAAABRyWFlaAAABkAAAABRnWFlaAAABpAAAABRiWFlaAAABuAAAABRyVFJDAAABzAAAAEBnVF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4pUFhcWPlWhhz3h967cZPE+H/AJ1CQ0YVWU8FSbC3mCfkcFjZsLOssRAZfEXG9T9scY8GlYkR+rjf6A12fgxmJnGLnkLopIXUSbt4geVS6hGEufMVimSNSf1WsooQLGkaHdmJv5m1zXwFiiJK6m1XA8qTCfGhLnvMX7x96SObCyKEbuMeD0vUcYaIsOTc+53r4WpL2tY7ioSRsanmeOJ2CliqkhRybdBWcZ1iswnZnZgl+5HfZR09/P5IsBt1rsvjZJ5o4VULDChPNyzE9fresRmeFjxUcOoPKTcqN7W338KieSTEEtuVUfvxSMTi0ZuAbDyvtWJRQhJ4FZUukSXOzMTbwqbDiQEHwt9Kw5CJpc2I6/5pwAhItY+dBTpFxvU8scaa3dVA6sQB96xvwv5uf4ZvH8RtB/232+RJPSgu9Q4meEMI5GQNzY2vauykQbHM5/Sth6sbVHOYcSzFSQwI2qaV3cWGkA3A9KiYzQgsbkXB9aJWOZY77tyfA9KQuJtTc8e1OEZbjgisRg/5jBSQm9nQrfwJ4NDNc0hvGMXOoUkFRIbC3vWIzrMZ8P8AAlnZ47g2ax48+fk7b/wwuOxGH1fCfTqIuQN9qybOlxEEj4mVA6vckkKNJ4tUGdYTFvIMOT3DYs21weo8qPabDwLMIplOnnrc/wC3xrstmf8ANiSGVry6ma56hjf7GszzgZfhRLKmuzqo3sTfn3tWL7S5emCmkilBPwdUd9rl7qNvIjcdKy7tdmmFTRdJkHAkuSPQgj71iJmmmklYAF3ZiBx3jf5XWavViTUbBTz60wUKQKgmlhkWSNyrqbgjkVmOd47GpGuIfWEvbYDc9TbrQNAj5U8VpFWFHYUpsaVr3H8DRY0gv8qTYXrV1oEk1pFqIIpX3HrW+9EigRfegy9PlW/Ka5O/FagOBWsmixoqQAaLnqeaIHj/AAU0huPw/wD/2Q=="
        style="width: 300px; height: 200px" src="">
    </div>
  </body>
  <script>
    function htmlToXml(html) {
      var doc = document.implementation.createHTMLDocument();
      var text = html.innerHTML;
      doc.documentElement.setAttribute('xmlns', doc.documentElement.namespaceURI);
      doc.documentElement.innerHTML = text;
      let htmls = (new XMLSerializer).serializeToString(doc.documentElement);
      return htmls;
    }

    function getImage(element) {
      var htmlElement = element;
      var canvasElement = document.createElement('canvas');
      canvasElement.height = 800;
      canvasElement.width = 500;
      var canvasContext = canvasElement.getContext('2d');
      var data = '<svg xmlns="http://www.w3.org/2000/svg" width="500" height="800" crossorigin="anonymous">' +
        '<foreignObject width="500" height="800">' +
        htmlToXml(htmlElement) +
        '</foreignObject>' +
        '</svg>';

      var url = '';
      var DOMURL = window.URL;
      var svg = new Blob([data], {
        type: 'image/svg+xml;charset=utf-8'
      });
      url = DOMURL.createObjectURL(svg);

      var img = new Image();
      img.setAttribute('width', '500');
      img.setAttribute('height', '800');
      img.onload = function() {
        canvasContext.drawImage(img, 0, 0);
        var res = canvasElement.toDataURL('image/png');
        console.log(res);
      }
      img.crossOrigin = 'Anonymous';
      img.src = url;
    }

    var htmlElement1 = document.getElementById('content1');
    var htmlElement2 = document.getElementById('content2');

    getImage(htmlElement1);

    getImage(htmlElement2);
  </script>
</html>

Запустите его в Edge и наблюдайте за выводом в консоли. Изображения base64 обоих элементов HTML регистрируются отдельно. Base64 для content1 генерируется правильно, а для content2 содержит пустое изображение.

1 Ответ

0 голосов
/ 06 марта 2019

Загрузка изображения является асинхронной задачей, даже если для src задано значение dataURL.

Я полагаю, что молодая интеграция Edge все еще имеет некоторые причуды для задержки внешнего события imageonload, пока все его внутренние ресурсы не будут эффективно загружены.

Не думаю, что здесь можно что-то сделать, кроме заполнения проблемы или добавления задержки в обработчике onload image.

Возможно, вы захотите попробовать HTMLImageElement.decode () , но я даже не уверен, что Edge поддерживает это, и может ли он вообще работать.

А в более общем случае вы можете вообще избежать этого взлома foreignObject и вместо этого рисовать DOM непосредственно из API Canvas, как это делает html2canvas .

...