@essentialrandom@indiepocalypse.social do you mean OCR or extract embedded text in the image headers
(if the former, i think open-source OCR is kind of bulky and unreliable but web APIs for interacting with browser- or operating system-provided OCR may be coming!)
(if the latter, yes i believe it's just a matter of undoing the compression and reading the correct image headers, both of which should be pretty fast operations especially in WASM. if the headers are at the beginning of the image you could potentially do it while the rest was still downloading.)