T3: EXIF GPS extraction from photo
+12
@@ -12,6 +12,18 @@ Mobile-first web app for tracking physical assets via barcode scanning, OCR stic
|
||||
- Username: `admin`
|
||||
- Password: `Brett85!@`
|
||||
|
||||
### T3 EXIF GPS Extraction from Photo — May 2026
|
||||
- **exifr.js CDN**: Loaded `exifr@7/dist/lite.umd.js` in `<head>` for JPEG EXIF GPS reading
|
||||
- **`extractGpsFromPhoto(file)`**: Async function using `exifr.gps()`, returns `{lat, lng, accuracy}` or null, catches errors gracefully
|
||||
- **`tryExtractGpsFromPicked()`**: Orchestrates extraction for the picked photo, renders GPS section in EXIF metadata display
|
||||
- **`renderGpsPreview(lat, lng, containerEl)`**: Leaflet mini-map (160px) with marker and OSM tiles, non-interactive static preview
|
||||
- **`fillManualFromGps()`**: Auto-fills `parking_location` + OSM map link in manual form, switches to manual mode
|
||||
- **`openInMaps()`**: Opens Google Maps at extracted GPS coordinates
|
||||
- **GPS badge**: Green "📍 GPS from photo" on success; red "📍 No GPS in photo" with explanation on failure (phones often strip EXIF when sharing)
|
||||
- **Manual edit**: "📝 Fill Form" loads coords into editable form fields; user can modify before saving
|
||||
- **Button handler**: `extractGpsFromPicked()` for manual re-extraction from photo preview toolbar
|
||||
- Commit: f895bf9 (included with T2)
|
||||
|
||||
### T2 Photo Gallery Picker — May 2026
|
||||
- **Hidden file input**: `<input type="file" id="photoPicker" accept="image/*" capture="environment">` in Add Asset tab
|
||||
- **"📱 Pick from Gallery" button** in mode toggles bar alongside Barcode/OCR/Manual
|
||||
|
||||
Reference in New Issue
Block a user