exifr.js + pixi.js

Base image

Base + depth

Use https://github.com/MikeKovarik/exifr to extract EXIF data on page load
Use https://github.com/pixijs/pixijs to create the 3D box
To change sample image, edit pen and replace the SRC with your own URL
Note that some image services will strip EXIF data during upload

Extracted depth data

Original

Depth map

Raw source