Sooo, here we are 🥳 (btw. second PR 🤪)
You can now drop your iPhone photos onto the composer and it just works. HEIC, ProRAW DNG, even a 70 MB file.
Until now, dropping a HEIC you'd moved from your iPhone to your Mac got you "Only JPEG, PNG, or WebP images up to 10 MB." Same deal for anything over 10 MB.
What changed:
· It all happens in the browser. Whatever needs converting ends up as a WebP (a PNG in Safari, which can't encode WebP) at 1.600px per side, exactly what the server keeps anyway. No server changes, no new limits.
· HEIC: Safari decodes it natively. Chrome and Firefox can't, so they get libheif via heic-to, loaded lazily the moment a HEIC actually shows up. Nobody else ever downloads that chunk.
· DNG: no browser can decode raw sensor data. But a ProRAW file carries a full-size JPEG of itself, so the reader walks the TIFF structure, grabs the biggest JPEG preview and converts that. No extra dependency.
· Favorite bug: iPhones write the orientation twice, once in the DNG and once in the preview's EXIF. Browsers apply the EXIF one while decoding, so your photo would get rotated twice. The fix drops the preview's EXIF and rotates exactly once.
· Drop a second photo while one is still converting and you get a clear message instead of it silently vanishing.
Tested by hand in Chrome and Safari on macOS with real files off an iPhone 16 Pro. The project's test suite is green, and the new tests check all eight EXIF orientations against the TIFF spec.
https://github.com/dev-null-sh/dev-null.sh/pull/1572
Step by step, my first PR for @dev-null-sh is coming together 🍻
GitHubfeat: convert HEIC and DNG photos and large images before upload by yeapea · Pull Request #1572 · dev-null-sh/dev-null.shSummary Dragging a HEIC photo that an iPhone transferred to a Mac onto the composer fails in Chrome with "Only JPEG, PNG, or WebP images up to 10 MB." Any image over 10 MB fails the same ...
commit 8356c9c