imagefast reads image dimensions, makes thumbnails and shows RAW previews right in the browser. A worker pool does the decoding, so the page keeps scrolling. Zero dependencies, 11 kB gzipped, with opt-in decoders for camera RAW, HEIC, TIFF and PSD. Open source under the MIT licence.

- Dimensions without decoding
- Width, height and format come from the file header, with the EXIF orientation applied: no decode, well under a millisecond.
- The page keeps painting
- Decoding, resizing and encoding run on a worker pool, so the page stays responsive while dozens of photos become thumbnails.
- RAW in tens of milliseconds
- For camera RAW files the embedded preview is used before any demosaic.
- Pay for what you use
- The RAW, HEIC, TIFF and PSD decoders are plugins that download when the first such file arrives.
- Safe output
- Thumbnails are oriented, never upscaled and carry no EXIF, so GPS tags do not leak.
- Nothing is uploaded
- Everything happens in the browser tab: the files never leave the device.