Skip to content

feat(report): KMZ geolocation export with embedded thumbnails - #8

Merged
charpy4n6 merged 1 commit into
mainfrom
feat/kmz-geolocation-thumbnails
Sep 3, 2026
Merged

charpy4n6 merged 1 commit into
mainfrom
feat/kmz-geolocation-thumbnails

Conversation

@charpy4n6

Copy link
Copy Markdown
Collaborator

The geolocation export is now a KMZ (a zipped KML plus bundled images) instead of a plain KML. Each placemark carries a thumbnail - the image thumbnail for stills, the middle key frame for videos - stored as a real JPEG inside the archive and referenced by relative path, so clicking a pin in Google Earth shows the picture at its location. A file with no preview still gets a plain placemark.

  • report.py: export_kml writes doc.kml + files/.jpg into a zip; new _thumb_bytes() helper; _fullview_data_uri() refactored to share a new _fullview_jpeg() (bytes) with the HTML report path
  • web/app.py, cli.py: write geolocation.kmz; --format kml -> .kmz
  • index.html: format label updated to "KMZ ... with thumbnails"
  • docs/MANUAL.md, help.html, README.md kept in sync

New test_kmz_export_embeds_thumbnails opens the archive and checks the KML, the refs, and that the bundled entries are real JPEGs.

Claude-Session: https://claude.ai/code/session_01VcEhYD7XkWcxocYPALdcEb

The geolocation export is now a KMZ (a zipped KML plus bundled images)
instead of a plain KML. Each placemark carries a thumbnail - the image
thumbnail for stills, the middle key frame for videos - stored as a real
JPEG inside the archive and referenced by relative path, so clicking a pin
in Google Earth shows the picture at its location. A file with no preview
still gets a plain placemark.

- report.py: export_kml writes doc.kml + files/<id>.jpg into a zip;
  new _thumb_bytes() helper; _fullview_data_uri() refactored to share a
  new _fullview_jpeg() (bytes) with the HTML report path
- web/app.py, cli.py: write geolocation.kmz; `--format kml` -> .kmz
- index.html: format label updated to "KMZ ... with thumbnails"
- docs/MANUAL.md, help.html, README.md kept in sync

New test_kmz_export_embeds_thumbnails opens the archive and checks the
KML, the <img> refs, and that the bundled entries are real JPEGs.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VcEhYD7XkWcxocYPALdcEb
@charpy4n6
charpy4n6 merged commit c1e5b4c into main Sep 3, 2026
8 checks passed
@charpy4n6
charpy4n6 deleted the feat/kmz-geolocation-thumbnails branch September 3, 2026 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant