4 ms·
You dont need to replace the img with canvas DOM - you can capture the canvas output as a dataURL.
by supermatt 4y ago
You dont need to replace the img with canvas DOM - you can capture the canvas output as a dataURL.
- lifthrasiir 4y agoYou can, but that is hugely inefficient. Any additional draw to the canvas has to generate a data URL for the image to be progressively decoded.
- rezonant 4y agoCan't reply to the reply to your reply but... Blobs can be used here and avoid the inefficiency of data URL conversions