fastimage
fastimage copied to clipboard
Use HTTP GET Range requests
No need to download the entire image to detect the type:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests
According to this: https://www.garykessler.net/library/file_sigs.html, you should only need to fetch the first 12 bytes (for webp).