Good point. <a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;get-pixels" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;get-pixels</a> can help parse an image to pixels, but it returns a different format than the canvas API&#x27;s Uint8ClampedArray.