I found this recently: https://github.com/photopea/UTIF.js/blob/master/UTIF.js Looks like a much faster alternative for decoding TIFF images.