Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

187
Views
-webkit-mask-image no funciona html2canvas render

Estoy tratando de hacer un editor de carteles de plantilla. Me gustaría agregar una imagen a mi lienzo mientras lo enmascaro. Funciona bien, puedo enmascarar cada foto que quiero, pero cuando intento renderizarla, la imagen agregada se renderiza sin ninguna imagen de máscara. ¿Cómo puedo arreglarlo?

este es mi lienzo

ingrese la descripción de la imagen aquí

Este es el resultado ingrese la descripción de la imagen aquí

Código:

 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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!