Content
This is a shitshow, but it works. const imgTag this.r2. createElement (‘img’); this.r2.setAttribute(imgTag, ‘src’, url); this.r2.setAttribute(imgTag, ‘width’ ‘100); this.r2.setAttribute(imgTag, height ‘100): this.r2.setattribute(imgTag, ‘id’ ‘tmp-img"); this.r2.setstyle(imgTag, ‘display ‘none’); this.r2.appendChild(document .body, imgTag) ; const img cv. imread("tmp-img"