It would be interesting to have an option to always return 4-component alpha representation, even if the image is only 3-channel. The idea being that you can then directly use the Uint8Array's buffer to create a Uint8ClampedArray to be fed into a canvas's ImageData.
It would be interesting to have an option to always return 4-component alpha representation, even if the image is only 3-channel. The idea being that you can then directly use the Uint8Array's buffer to create a Uint8ClampedArray to be fed into a canvas's ImageData.