05b0c9d7e6
The idea is to encode large image in BMP format (which is very simple and doesn't require to compute any checksums) and then use createImageBitmap with a BMP blob (which doesn't suffer of the Canvas/ImageData limits). From a performance point of view, it isn't crazy (generating a large blob + decoding it on the main thread is really not ideal) but at least we've something to display which is a way better than a blank page (and one can notice that most of the time is spent in decoding the image from the pdf stream).
3 lines
75 B
SYSTEMD
3 lines
75 B
SYSTEMD
https://github.com/mozilla/pdf.js/files/1135236/eID_Broschuere-page16.pdf
|
|
|