Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

186
Vistas
-webkit-mask-image is not working html2canvas render

I am trying to do template poster editor. I would like to add a image to my canvas while masking it. It works well, i can mask every photo that i want but when i try to render it, added image is rendered without any mask-image. How can i fix it?

This is my canvas

enter image description here

This is the result enter image description here

Code:

function capture() {
         $('#target').html2canvas({
            onrendered: function (canvas) {


               var a = document.createElement('a');
               a.href = canvas.toDataURL("image/jpeg", 1.0);
               name = document.getElementById("konukAdi").value
               name = name.replace(/\s/g, '')

               extname = document.getElementById("boyut-secimi").value
               a.download = name + extname + '.jpg';

               a.click();

            }
         });
      }
top: 16.12%;
    left: 55.9%;
    -webkit-mask-size: contain;
    -webkit-mask-image: url(/poster/images/masks/tercih.png)!important;
    z-index: 15;
    overflow: hidden;
    width: 620px;
    height: auto;
    position: absolute;
<img src="" id="id_1" class="konukImg" onclick="dragImage(this);" style="mask-image: url(/poster/images/masks/tercih.png) !important; top:16.12%;left:55.9%; -webkit-mask-size:contain;-webkit-mask-image: url(/poster/images/masks/tercih.png)!important; ;z-index : 15;overflow : hidden; width:620px;height:auto; position : absolute;">

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda