logoalt Hacker News

ibarrajo11/03/20251 replyview on HN

I just had to try, got a bitmap and set it directly on the canvas using js, I wonder if it will print.

Canvas is 348x348.

https://gist.github.com/ibarrajo/d5dc106cf226a0f2286e7e959ce...


Replies

a_t4811/04/2025

I did the same thing, though with `img.src = https://my_image/whatever.jpg; img.setAttribute("crossorigin", "anonymous");`