Skip to content

Add ExifTool examples for batch processing#295

Merged
fglock merged 1 commit intomasterfrom
add-exiftool-examples
Mar 10, 2026
Merged

Add ExifTool examples for batch processing#295
fglock merged 1 commit intomasterfrom
add-exiftool-examples

Conversation

@fglock
Copy link
Owner

@fglock fglock commented Mar 10, 2026

Summary

Addresses #292 - Provides examples showing how to use Image::ExifTool module for repeated execution with different files.

Key insight: For batch processing, use the Perl module directly rather than running a CLI script repeatedly. The module is loaded once, then methods can be called for each file without recompilation.

Files added:

  • examples/ExifToolExample.pl - Pure Perl version
  • examples/ExifToolExample.java - Java integration version

Documentation:

  • Updated docs/guides/java-integration.md with "Repeated Execution / Batch Processing" section

Example output:

ExifTool version: 13.44

File: Image-ExifTool-13.44/t/images/Canon.jpg
  DateTimeOriginal: 2003:12:04 06:46:52
  Make: Canon
  Model: Canon EOS DIGITAL REBEL

File: Image-ExifTool-13.44/t/images/Nikon.jpg
  DateTimeOriginal: 2001:08:01 12:57:23
  Make: NIKON
  Model: E775

Test plan

  • ./gradlew run --args='examples/ExifToolExample.pl' works
  • Documentation updated

Generated with Devin

Demonstrates how to use Image::ExifTool module directly for processing
multiple files efficiently. This is the recommended approach rather than
running the CLI script repeatedly.

- examples/ExifToolExample.pl - Pure Perl version
- examples/ExifToolExample.java - Java integration version
- Updated docs/guides/java-integration.md with "Repeated Execution" section

Addresses #292

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <noreply@cognition.ai>
@fglock fglock force-pushed the add-exiftool-examples branch from 2ab59c1 to 8128b21 Compare March 10, 2026 12:41
@fglock fglock merged commit 9d8332e into master Mar 10, 2026
2 checks passed
@fglock fglock deleted the add-exiftool-examples branch March 10, 2026 12:43
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