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
- Fast path (
createImageBitmap/HTMLImageElement): For JPEG, PNG, and WebP, decoding dimensions locally viaURL.createObjectURL(file)takes under 15 milliseconds and uses zero server bandwidth. - Flatbed 16-bit TIFFs (
utif2): Browsers outside Safari cannot natively decode.tif/.tifffiles from Epson or Canon flatbed scanners. Decoding the IFD tags locally lets us read exactwidth × heightimmediately. - One-click handoff without re-selecting the file: In Release 40, we kept the locally inspected
Filereference in Svelte 5 state (inspectedFile) so if a visitor sees that their tiny2 × 3"wallet scan falls below 200 DPI for an8 × 10"frame, one click passes that exactFiledirectly 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:
- Walgreens, CVS, and Walmart 300-DPI Photo Print Size & Same-Day Guide — exact pixel dimensions from Wallet (
2 × 3") up to16 × 20", matte vs. glossy paper notes, and avoiding head cropping. - How to Scan Old Photos at Home (600 vs. 1200 DPI & Scanner PDFs) — flatbed settings by original print size and how to extract full-resolution embedded photos from home scanner
.PDFfiles directly in your browser.
