HTML2CANVAs reduzieren die Bildgröße
await html2canvas(el,{
scale:0.7,
useCORS:true,
// foreignObjectRendering:true,
windowWidth: el.scrollWidth,
windowHeight: el.scrollHeight,
onclone:()=>{
alert();
}
}).then((canvas) =>{
const base64image = canvas.toDataURL("image/jpeg", 1.0);
this.engine.catimg.img = base64image;
this.engine.catimg.screenshot = true;
//document.body.appendChild(canvas);
});
}
Hurt Hamster