/media-os:media-exiftool [operation] [file]from media-os
Reads and writes EXIF, IPTC, XMP, GPS metadata for photos and videos using ExifTool. Supports batch operations, stripping GPS, shifting timestamps, and copying metadata between files.
Ships in media-os. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Context: $ARGUMENTS
ExifTool (by Phil Harvey) is the de facto standard for reading and writing metadata in images, RAW files, video, PDFs, and audio. It handles EXIF, IPTC, XMP, GPS, MakerNotes, QuickTime atoms, ID3, and hundreds of vendor-specific tags.
exiftool -g1 in.jpg → Step 2, readexiftool -j in.jpg → Step 2, readexiftool -P -overwrite_original -Artist="Alice" in.jpg → Step 2, writeexiftool -all= -overwrite_original in.jpg → Step 2, stripexiftool -TagsFromFile src.jpg dst.jpg → Step 2, copyexiftool "-AllDates+=0:0:0 1:0:0" *.jpg → Step 2, shiftDateTimeOriginalPick one:
# macOS (Homebrew)
brew install exiftool
# Debian / Ubuntu
sudo apt install libimage-exiftool-perl
# Verify
exiftool -ver # expect 12.x or 13.x
ExifTool is a Perl script — perl must be present (it is on macOS and most Linux).
| Op | When | Core command |
|---|---|---|
| read | You need to see tags | exiftool -g1 in.jpg or exiftool -j in.jpg |
| write | You need to set or change one or more tags | exiftool -P -overwrite_original -Tag=Value in.jpg |
| strip | You need to remove metadata (e.g., before posting) | exiftool -all= -overwrite_original in.jpg |
| copy | You need to transfer tags from one file to another | exiftool -TagsFromFile src.jpg dst.jpg |
| shift | You need to correct camera clock drift | exiftool "-AllDates+=0:0:0 1:0:0" *.jpg |
| gps | You need to add/remove location | exiftool -GPSLatitude=... -GPSLongitude=... in.jpg |
| extract | You need the embedded thumbnail or preview | exiftool -b -ThumbnailImage in.jpg > thumb.jpg |
| sidecar | You need metadata beside (not inside) the file | exiftool -o dst.xmp -tagsFromFile src.jpg |
| rename | You need filenames derived from capture date | exiftool '-FileName<DateTimeOriginal' -d '%Y%m%d_%H%M%S.%%le' |
exiftool -g1 in.jpg # grouped by family-1 tag group
exiftool -j in.jpg # JSON (always a single-element array)
exiftool -s -s -s -CreateDate in.jpg # ultra-short: value only
exiftool -CreateDate -ImageWidth -ImageHeight in.jpg
exiftool -n in.jpg # numeric/raw values (no pretty formatting)
exiftool -t in.jpg # tab-separated
exiftool -r photos/ # recurse a directory
# Single tag
exiftool -P -overwrite_original -Artist="Alice" in.jpg
# Multiple tags in one invocation (one pass is always faster)
exiftool -P -overwrite_original \
-Artist="Alice" \
-Copyright="(c) 2026 Alice" \
-XMP:Rating=5 \
in.jpg
# Append vs replace on list tags (IPTC keywords)
exiftool -P -overwrite_original -Keywords+="sunset" -Keywords+="beach" in.jpg # append
exiftool -P -overwrite_original -Keywords="sunset" in.jpg # replace
exiftool -P -overwrite_original -Keywords-="badtag" in.jpg # remove one
# Set group explicitly (tags with the same short name exist in EXIF, XMP, IPTC)
exiftool -P -overwrite_original -XMP:Creator="Alice" -IPTC:By-line="Alice" -EXIF:Artist="Alice" in.jpg
-P preserves the filesystem mtime (otherwise ExifTool updates it to "now"). -overwrite_original skips the default in.jpg_original backup — only use after you have verified the command works on a copy.
exiftool -all= -overwrite_original in.jpg # everything (DESTRUCTIVE)
exiftool -gps:all= -overwrite_original in.jpg # GPS group only
exiftool -exif:all= -overwrite_original in.jpg # EXIF only, keep XMP/IPTC
exiftool -all= -tagsfromfile @ -orientation in.jpg # strip all, restore orientation
exiftool -TagsFromFile src.jpg dst.jpg # all writable tags
exiftool -TagsFromFile src.jpg "-DateTimeOriginal" "-Make" "-Model" dst.jpg
exiftool -TagsFromFile src.jpg -all:all dst.jpg # every group
exiftool "-AllDates+=0:0:0 1:0:0" *.jpg # +1 hour
exiftool "-AllDates-=0:0:1 0:0:0" *.jpg # -1 day
exiftool "-AllDates+=0:0:0 0:30:0" -if '$make eq "Apple"' *.jpg
AllDates is a convenience shortcut for DateTimeOriginal + CreateDate + ModifyDate. Date format is YYYY:MM:DD HH:MM:SS (colons, not dashes).
exiftool -GPSLatitude=37.7749 -GPSLongitude=-122.4194 \
-GPSLatitudeRef=N -GPSLongitudeRef=W \
in.jpg
Write decimal latitude/longitude; the Ref tags (N/S for latitude, E/W for longitude) must be set too. ExifTool returns DMS on read unless you pass -n.
exiftool -b -ThumbnailImage in.jpg > thumb.jpg
exiftool -b -PreviewImage in.cr2 > preview.jpg
exiftool -b -JpgFromRaw in.nef > full.jpg
exiftool -o dst.xmp -tagsFromFile src.jpg # create sidecar from image
exiftool -tagsfromfile src.xmp dst.jpg # apply sidecar to image
exiftool '-FileName<DateTimeOriginal' -d '%Y%m%d_%H%M%S.%%le' *.jpg
# %%le = lowercase file extension; ExifTool interprets the outer %-codes, so double them.
Always read back after a write:
exiftool -G1 -a -s -Artist -Copyright -XMP:Rating in.jpg
For full roundtrip integrity: exiftool -validate -warning -a in.jpg.
scripts/exif.py — argparse wrapper over exiftool for read, write, strip, copy, shift-dates, gps, extract-thumbnail, batch-rename, sidecar. Supports --dry-run and --verbose. Stdlib only.uv run ${CLAUDE_SKILL_DIR}/scripts/exif.py read --input in.jpg --json
uv run ${CLAUDE_SKILL_DIR}/scripts/exif.py write --input in.jpg --set "Artist=Alice" --set "Copyright=(c) 2026" --preserve-mtime
uv run ${CLAUDE_SKILL_DIR}/scripts/exif.py strip --input in.jpg --gps-only --preserve-mtime
uv run ${CLAUDE_SKILL_DIR}/scripts/exif.py shift-dates --input ./trip --delta "0:0:0 1:0:0"
uv run ${CLAUDE_SKILL_DIR}/scripts/exif.py batch-rename --dir ./trip --pattern DateTimeOriginal --format "%Y%m%d_%H%M%S.%%le"
references/exiftool.md for tag groups, format support matrix, date/GPS conventions, and the recipe book.perl must be on $PATH (default on macOS and Linux; on Windows use the Strawberry build).file.jpg_original unless you pass -overwrite_original. That flag is fast but DANGEROUS — always verify on one file first, or keep your own backup tree.-P preserves file mtime. Without it, ExifTool sets the file's mtime to "now" on every write, which ruins date-based sorting.-XMP:Creator, -IPTC:By-line, and -EXIF:Artist are three separate fields on the same image. Write all three when you care about cross-tool interop (Lightroom, Bridge, Finder all look at different ones).YYYY:MM:DD HH:MM:SS — dashes will fail silently on some tags.AllDates is a shortcut for DateTimeOriginal + CreateDate + ModifyDate. -FileModifyDate is the filesystem mtime and is separate.GPSLatitude=37.7749 without GPSLatitudeRef=N is ambiguous; some readers will treat it as unsigned.-n for numeric output when piping to another tool — ExifTool's default formatting is human-friendly, not machine-friendly.-s -s -s gives tag value only, no tag name or group. Useful for $(exiftool -s3 -CreateDate in.jpg).-@ args.txt reads arguments from a file — use for long arg lists or to avoid shell quoting hell. -TagsFromFile with -@ reads JSON.mkvpropedit for MKV. QuickTime atoms (MP4/MOV) are fully writable.-if: exiftool -if '$make eq "Apple"' -TagsFromFile ... -r folder/. Faster than xargs piping..xmp sidecar exists next to a file, some tools prefer it over the embedded XMP. Decide which is authoritative and stick with it.exiftool -P -overwrite_original -gps:all= -xmp:geotag= vacation.jpg
exiftool -g1 -a -s vacation.jpg | grep -i gps # verify empty
exiftool -TagsFromFile IMG_0001.CR2 -all:all --orientation --thumbnailimage IMG_0001.jpg
# --orientation and --thumbnailimage mean "except these" (don't overwrite orientation/thumb on dst).
exiftool -P -overwrite_original -r "-AllDates+=0:0:0 1:0:0" ./trip_photos/
YYYYMMDD_HHMMSS.ext based on capture timeexiftool '-FileName<DateTimeOriginal' -d '%Y%m%d_%H%M%S%%-c.%%le' -r ./imports/
# %%-c appends -1, -2, etc. on collisions.
exiftool -P -overwrite_original \
-EXIF:Artist="Alice Example" \
-XMP:Creator="Alice Example" \
-IPTC:By-line="Alice Example" \
-XMP:Rights="(c) 2026 Alice Example. All rights reserved." \
-IPTC:CopyrightNotice="(c) 2026 Alice Example" \
-EXIF:Copyright="(c) 2026 Alice Example" \
portfolio/*.jpg
exiftool -g1 -a IMG_1234.HEIC
exiftool -j -struct IMG_1234.HEIC | jq .
Error: Not a valid TAG=VALUE pairCause: stray shell glob, unquoted special character, or using = inside the value without quoting.
Solution: quote the whole assignment: -Comment="Shot at f/2.8".
Warning: Sorry, ... is not writableCause: the tag group doesn't exist in that file type (e.g., writing EXIF to a PNG).
Solution: write to XMP instead: -XMP:Artist="Alice".
_original suffix everywhere after a batchCause: forgot -overwrite_original.
Solution: either delete the originals after verifying (find . -name '*_original' -delete) or rerun with -overwrite_original next time. Keep your own backup first.
Cause: tool reads FileModifyDate or a sidecar, not embedded EXIF.
Solution: also set -FileModifyDate, or delete the stale .xmp sidecar.
Cause: missing GPSLatitudeRef / GPSLongitudeRef.
Solution: always write both Ref tags alongside the coordinate values.
exiftool: command not foundCause: not installed, or installed for a different Perl.
Solution: brew install exiftool (macOS) / apt install libimage-exiftool-perl (Debian). Verify perl -v works.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub damionrashford/media-os --plugin media-os110 skills in this plugin
/audio-coreaudioManipulate macOS audio at the Core Audio HAL layer: afinfo (audio file metadata), afplay (play), afconvert (convert format/rate/bit-depth/channel layout), say (TTS), SwitchAudioSource (change default input/output/system device — brew install switchaudio-osx), audiodevice CLIs (npm/Go variants), AppleScript via osascript to drive System Preferences Sound. HAL plugins at /Library/Audio/Plug-Ins/HAL/ load virtual drivers (BlackHole 2ch/16ch/64ch, Loopback, Background Music). Aggregate Device (drift-corrected multi-in) and Multi-Output Device via Audio MIDI Setup.app or AudioHardwareCreateAggregateDevice. Use when the user asks to change default macOS audio device, route audio between apps on Mac, install BlackHole, build an Aggregate Device, convert audio files with afconvert, or script Mac audio from the terminal.
/audio-jackRoute professional low-latency audio with JACK Audio Connection Kit (jackaudio.org): jackd server (ALSA/CoreAudio/PortAudio/ASIO backends), jack_control (D-Bus JACK2 config), jack_lsp (list ports/connections), jack_connect/jack_disconnect (manage links), jack_cpu_load, jack_samplerate, jack_bufsize (runtime period size), jack_transport, jack_rec (multi-channel WAV recording), jack_iodelay (round-trip latency), jack_wait, jack_midi_dump. JACK1 C maintenance vs JACK2 C++ multicore. Modern Linux swaps jackd for PipeWire's libjack shim — same client API. JackTrip for uncompressed multichannel UDP over the Internet. Use when the user asks to run a JACK server, connect audio clients, measure roundtrip latency, record from JACK ports, set JACK period size, or bridge JACK over the network with JackTrip.
Other plugins' skills for the same job