Canvas drawImage() Took Me 3 Days to Get Right
Last month I spent three days debugging why my SVG-to-PNG converter produced black-background PNGs from transparent SVGs. Rendering SVG to Canvas, exporting via toBlob(). Every transparent SVG came out with a black background. Not globalCompositeOperation. Not pixel manipulation. One line: ctx.clear


