vivaxy's Blog

Vivaxy's blog

马上订阅 vivaxy's Blog RSS 更新: https://vivaxyblog.github.io/atom.xml

Decoding A PNG Image with JavaScript Step by Step

2019年11月7日 08:00
Decode a PNG means to convert an image from binary data to ImageData with pixels. Image binary data can be retrieved from <canvas>, <img>, Object URLs, Image URLs, Blob. See Comprehensive Image Processing on Browsers for details. ImageData is an object with pixel data, width and height. Example Image 👆This...