Most online "image DPI checkers" make you upload a 25 MB family scan to a remote server just to read two integers (width and height). That is slow, wastes bandwidth, and makes people nervous when they are checking private family portraits.

While building the free Image DPI Checker and 300-DPI Photo Print Size Calculator on Mended Photo, we kept file inspection 100% browser-local (zero bytes leave the user's machine during inspection), even for flatbed .TIFF scans and iPhone .HEIC files.

Why Metadata DPI Lies (and Effective Print DPI Is All That Matters)

A common trap when people prepare old family photos for Walgreens, CVS, or Walmart print counters is trusting the EXIF XResolution header (72 DPI or 96 DPI). A 3000 × 2400 px JPEG tagged as 72 DPI in EXIF prints cleanly at 300 DPI on an 8 × 10 inch frame, because physical print density only depends on pixel dimensions divided by physical inches:

const shortPx = Math.min(width, height); const longPx = Math.max(width, height); const effectiveDpi = Math.floor(Math.min(shortPx / targetShortIn, longPx / targetLongIn)); 

Using the limiting edge (Math.min) catches aspect-ratio mismatches immediately: a classic 2:3 snapshot (1200 × 1800 px) looks like 300 DPI for a 4 × 6" print, drops to 240 DPI at 5 × 7", and falls to 150 DPI at 8 × 10" while losing ~17% of the long edge to centered kiosk cropping.

Inspecting JPEG, PNG, WebP, TIFF, and HEIC Locally Without Uploading

  1. Fast path (createImageBitmap / HTMLImageElement): For JPEG, PNG, and WebP, decoding dimensions locally via URL.createObjectURL(file) takes under 15 milliseconds and uses zero server bandwidth.
  2. Flatbed 16-bit TIFFs (utif2): Browsers outside Safari cannot natively decode .tif/.tiff files from Epson or Canon flatbed scanners. Decoding the IFD tags locally lets us read exact width × height immediately.
  3. One-click handoff without re-selecting the file: In Release 40, we kept the locally inspected File reference in Svelte 5 state (inspectedFile) so if a visitor sees that their tiny 2 × 3" wallet scan falls below 200 DPI for an 8 × 10" frame, one click passes that exact File directly into our <UploadDropzone> normalization pipeline for a free 20-second restoration and 4K upscale preview — zero re-browsing through folders.

Reference Guides for Scanning and Retail Printing

If you are digitizing family albums or preparing holiday prints this week, we also published two practical guides: