Repository navigation
ExifTool metadata in the details pane and the HTML report - #304
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_metatable), 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 --exiftoolincludes every category.How ExifTool is run
gleapp/exiftool.py.-json -G0:1 -a, in one-stay_openbatch process (~3 ms per file once running).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 hardos._exitwas checked to leave nothing running. It is also stopped at exit and inshutdown.archive.local_copy.Where ExifTool comes from
It's looked up in this order:
$GLEAPP_EXIFTOOL, then a copy bundled in a frozen build, thenexiftoolon 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.speccopies the folder named byGLEAPP_EXIFTOOL_DIRat build time: the official Windows package, withexiftool(-k).exerenamed toexiftool.exebesideexiftool_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.exiftool.Docs: MANUAL §6 and §14, and the in-app help.
🤖 Generated with Claude Code