pbm2canvas
A JavaScript library to convert Netpbm images to canvas.
Currently supporting P1 (black and white) and P2 (grayscale).
Usage
let pbm = `P1# example for pbm2canvas5 51 0 0 0 10 1 0 1 00 0 1 0 00 1 0 1 01 0 0 0 1` let canvas = documentbody