Since browsers know how to handle JPG files, is there a way to give them the actual binary data of a JPG file dynamically and allowing them to decode it?
I can't supply the file as a normal image.src="path.jpg" because the data is originally a part of another file which is parsed in JS.
In addition, I have weird JPG files that store alpha, and so libraries like https://github.com/notmasteryet/jpgjs can't handle them.