Is there a way to crop an HTML canvas based solely on its content?
I've been using strokeText
to create the canvas content, making it tricky to determine the actual size. Would it be possible to loop through each pixel of the canvas, or is there a more efficient method available?
Thank you