It’s the school holiday season, and many of us have either planned or just returned from overseas trips—or even local weekend tours. Between phone cameras, shared family albums, and messaging apps, travel photos quickly scatter across devices.

With Seahill Atlas (also hosted at seahill.studio), you can consolidate all your trip photos in one place on an interactive map, entirely inside your browser. Your photo files stay locally on your device in IndexedDB—they are never uploaded to a server and never exposed for AI training.

Seahill Atlas Map View

Why Local-First?

Most photo-mapping apps require uploading your originals to a cloud backend. That means:

  1. Your private GPS history and family photos sit on someone else’s server.
  2. You need a reliable internet connection just to organize or browse your trip.
  3. Your photos may be indexed or used for model training.

Seahill Atlas takes the opposite approach: everything runs in the browser as a static single-page application. You own the files, the metadata, and the backups.

Key Features

  • Automatic GPS & EXIF Parsing: When you import photos, Atlas parses embedded EXIF metadata locally using exifr—extracting capture timestamps, camera/lens details, and GPS coordinates (when location sharing was enabled on your camera).
  • Manual GPS & Waypoints: For photos without GPS metadata (or stops where you didn’t take a photo), you can add or edit coordinates manually, click Pick on map, or drop a manual waypoint with a date and note.
  • Trip Albums & Replay: Group photos into trip albums, reorder stops, and hit Replay trip to step through your journey—or switch to Explore in 3D (powered by MapLibre GL) to tilt and orbit around terrain.
  • GPX Route Export: Export any trip’s stops as a standard .gpx file for use in other mapping or fitness tools.

Seahill Atlas Albums & Sync Controls

Architecture

Each layer in Seahill Atlas has a clear, separated responsibility:

Seahill Atlas Architecture
  • React + Vite: UI state, trip albums, photo gallery, and waypoint editing.
  • Leaflet: 2D photo mapping, route polylines, and interactive pin popups.
  • MapLibre GL: 3D terrain exploration around geotagged stops.
  • IndexedDB: Persistent local storage for original photo blobs, metadata, and disposable previews.
  • Service Worker (sw.js): Caches the app shell and recently viewed map tiles for offline use.
  • .atlas: Portable binary backup and mobile-to-PC synchronization format.

Local Previews & Storage

Storing dozens of 12–48 MP originals in IndexedDB is fast, but decoding full-resolution images every time you pan a map or scroll a gallery would bog down mobile browsers.

To keep the UI snappy, Atlas generates two local WebP derivatives on import—thumbnails (up to 400 px) for map pins and previews (up to 1,920 px) for the viewer—while keeping the original blob and EXIF metadata untouched (src/photoPreviews.js):

export async function createPreviews(blob) {
  if (!['image/jpeg', 'image/png', 'image/webp'].includes(blob.type)) return {};
  let bitmap;
  try {
    bitmap = await createImageBitmap(blob, { imageOrientation: 'from-image' });
    const encode = async (edge, quality) => {
      const scale = Math.min(1, edge / Math.max(bitmap.width, bitmap.height));
      const canvas = document.createElement('canvas');
      canvas.width = Math.max(1, Math.round(bitmap.width * scale));
      canvas.height = Math.max(1, Math.round(bitmap.height * scale));
      canvas.getContext('2d').drawImage(bitmap, 0, 0, canvas.width, canvas.height);
      const result = await new Promise((resolve) => canvas.toBlob(resolve, 'image/webp', quality));
      canvas.width = canvas.height = 1;
      return result?.type === 'image/webp' && result.size < blob.size ? result : null;
    };
    return { thumbnailBlob: await encode(400, 0.78), previewBlob: await encode(1920, 0.84) };
  } catch {
    return {}; // Unsupported or damaged images still retain their originals.
  } finally {
    bitmap?.close();
  }
}

Derivatives are only kept if they are smaller than the original, and backups never waste space storing disposable previews.

Installable PWA

Instead of waiting until you’re back home, you can install Seahill Atlas as a Progressive Web App (PWA) on your phone before you fly:

  • 1-Click Install: On Android, Chrome, or Edge, an Install app button appears in the header via beforeinstallprompt; on iOS Safari, use Share → Add to Home Screen.
  • Offline App Shell & Tile Caching: A service worker (sw.js) caches the app shell for offline launch and stores recently viewed Esri, Mapterhorn, and OpenStreetMap tiles in a bounded 400-tile cache.
  • Quick Camera Capture: Tap Take photo (capture="environment") to snap and pin a moment directly into your active trip while offline.

Offline-First Trade-offs

Offline-first in a browser comes with real boundaries worth being explicit about:

  • Cached vs. unexplored map areas: The app launches offline and previously viewed map tiles remain available, but unexplored regions won’t load without a connection.
  • Browser storage quotas: IndexedDB is subject to browser storage quotas and potential eviction if a device runs critically low on space—so you should periodically export .atlas backups rather than treating browser storage as your only copy.
  • Photo privacy vs. tile requests: Your photo files never leave your device, but when you browse maps online, external tile providers (Esri, Mapterhorn, OpenStreetMap) still receive standard tile/coordinate requests for the viewed viewport.

.atlas Format & Sync

When you return home, you want a fast way to move your mobile trip into your main desktop library without relying on a cloud backend.

  • Why not ZIP? JPEG, PNG, and WebP photos are already compressed. Running ZIP/Deflate over image bytes wastes mobile CPU and battery for almost zero size reduction.
  • Why compress metadata only? A large library’s JSON manifest (photo metadata, EXIF fields, album assignments, waypoints) compresses by ~70–85% with gzip, while appending raw photo blobs avoids re-compressing images.
  • Why trip-only & ID-based merge? Exporting just the active trip (Sync trip)—or its 1,920 px WebP previews (Compact)—keeps transfers small over hotel Wi-Fi. When imported on your PC, decodeLibrary merges missing photos and albums by ID without overwriting existing records.

Here is the actual ATLAS2 encoder in src/libraryBackup.js using the browser’s native CompressionStream('gzip'):

async function gzipBytes(bytes) {
  const stream = new Blob([bytes]).stream().pipeThrough(new CompressionStream('gzip'));
  return new Uint8Array(await new Response(stream).arrayBuffer());
}

export async function encodeLibrary(photos, albums, { compact = false } = {}) {
  const resolvedPhotos = photos.map((photo) => {
    const chosenBlob = compact && photo.previewBlob ? photo.previewBlob : photo.blob;
    return { photo, chosenBlob };
  });
  const rawManifest = new TextEncoder().encode(JSON.stringify({
    photos: resolvedPhotos.map(({ photo: { blob, url, thumbnailBlob, previewBlob, thumbnailUrl, previewUrl, ...metadata }, chosenBlob }) => ({ ...metadata, type: chosenBlob.type, size: chosenBlob.size })),
    albums,
  }));
  const canGzip = typeof CompressionStream !== 'undefined';
  const magic = canGzip ? MAGIC_V2 : MAGIC_V1;
  const manifest = canGzip ? await gzipBytes(rawManifest) : rawManifest;
  if (manifest.length > MAX_MANIFEST) throw new Error('The library metadata is too large to back up.');
  const prefix = new Uint8Array(PREFIX_SIZE);
  prefix.set(new TextEncoder().encode(magic));
  new DataView(prefix.buffer).setUint32(magic.length, manifest.length);
  return new Blob([prefix, manifest, ...resolvedPhotos.map(({ chosenBlob }) => chosenBlob)], { type: 'application/octet-stream' });
}

Where supported, window.showSaveFilePicker streams the resulting .atlas file directly to disk (with an <a download> fallback).

Closing Thoughts

Seahill Atlas gives you a private, zero-backend way to capture trips on your phone, replay routes in 2D and 3D, and sync everything back to your home PC—keeping your travel memories yours.

Looking ahead, two additions on the roadmap are:

  • Optional WebP-only mobile storage for travellers who want to save device space by keeping resized 1,920 px WebP copies instead of full-resolution originals on the road.
  • WebM trip replay export using canvas.captureStream() and MediaRecorder to turn any Replay trip animation into a shareable video right in the browser.