Skip to content

ExifTool metadata in the details pane and the HTML report - #304

Merged
charpy4n6 merged 1 commit into
mainfrom
feat/exiftool-details
Oct 21, 2026
Merged

charpy4n6 merged 1 commit into
mainfrom
feat/exiftool-details

Conversation

@charpy4n6

Copy link
Copy Markdown
Collaborator

What it adds

Details pane. There's a new collapsed Metadata (ExifTool) section under the table. It shows every field ExifTool reads: maker notes, XMP, IPTC, lens and exposure, QuickTime. Fields are grouped by nine categories, and each category holds ExifTool's own groups (IFD0, ExifIFD, Canon, XMP-dc…). The section is read the first time it's opened and cached in the case (new exiftool_meta table), so later opens are instant. Whether it was left open is remembered.

HTML export. There's a new Include ExifTool metadata option, off by default and saved with the case, with a checkbox per category: Camera & capture (EXIF), GPS, Maker notes, XMP, IPTC, Video, Calculated (Composite), File & format, Other. Each card gets a collapsed block grouped the same way as the menu. Files never opened are read during the export. On the command line, gleapp report --exiftool includes every category.

How ExifTool is run

  • Module: gleapp/exiftool.py.
  • Mode: read-only, with -json -G0:1 -a, in one -stay_open batch process (~3 ms per file once running).
  • Dropped fields: the System group (the examiner's file name, folder and permissions) and ExifTool's version line. A test checks that no local path ends up in the output.
  • Lifetime: on Windows the process is placed in a job object with KILL_ON_JOB_CLOSE, so it can't outlive GLEAPP. Before this, the build folder stayed locked by an ExifTool left behind after GLEAPP closed. A hard os._exit was checked to leave nothing running. It is also stopped at exit and in shutdown.
  • Files not on disk: rows inside archives or disk images are read from archive.local_copy.

Where ExifTool comes from

It's looked up in this order: $GLEAPP_EXIFTOOL, then a copy bundled in a frozen build, then exiftool on PATH. If none is found, the pane says ExifTool isn't available and nothing else changes.

Bundling is opt-in and not wired into CI or releases. packaging/gleapp.spec copies the folder named by GLEAPP_EXIFTOOL_DIR at build time: the official Windows package, with exiftool(-k).exe renamed to exiftool.exe beside exiftool_files. Nothing is committed to the repo; the package is about 35 MB unpacked. Release builds as they stand don't include ExifTool. Whether and how they should is open. On Windows it would mean a second executable inside the signed single-file build.

Licensing. ExifTool is Phil Harvey's, under the same terms as Perl. The Windows package ships GPL v3 text plus Strawberry Perl's licenses inside exiftool_files, and a bundled build carries those files with it. GLEAPP runs it as a separate program and doesn't link it. This isn't a legal review.

Testing

  • tests/test_exiftool_metadata.py (ExifTool faked, all synthetic) covers: parsing and dropped fields, category mapping, the cache (read once), the "not available" path, and the report's category filter.
  • Full suite: 1,060 passed locally on Windows, excluding one test that needs symlink privileges this machine lacks.
  • Lint: no new warnings. Line endings: LF.
  • Tried by hand in a frozen Windows build with ExifTool 13.59 bundled. The download's SHA-256 matched exiftool.org's published checksum.
  • Not tried: macOS and Linux with an installed exiftool.

Docs: MANUAL §6 and §14, and the in-app help.

🤖 Generated with Claude Code

The details pane gains a collapsed "Metadata (ExifTool)" section with every
field ExifTool reads: maker notes, XMP, IPTC, lens and exposure, video. It
is read the first time it is opened and kept in the case (exiftool_meta).
ExifTool runs read-only in -stay_open batch mode; on Windows it is tied to
GLEAPP's process by a job object so it cannot outlive it. Fields about the
examiner's copy (System group) are dropped.

The HTML export gets "Include ExifTool metadata" with a choice of
categories (Camera & capture, GPS, Maker notes, XMP, IPTC, Video,
Composite, File & format, Other); the pane and the report group by the
same categories, each holding ExifTool's own groups.

ExifTool is found via $GLEAPP_EXIFTOOL, a copy bundled in a frozen build
(packaging/gleapp.spec copies GLEAPP_EXIFTOOL_DIR when set), or PATH.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@charpy4n6
charpy4n6 merged commit 7e6d3e9 into main Oct 21, 2026
12 checks passed
@charpy4n6
charpy4n6 deleted the feat/exiftool-details branch October 21, 2026 18:04
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