Skip to content

Instantly share code, notes, and snippets.

@zkarj735
Last active December 13, 2022 05:47
Show Gist options
  • Save zkarj735/03408c753d29dac5f9b423d09d5d361f to your computer and use it in GitHub Desktop.
Save zkarj735/03408c753d29dac5f9b423d09d5d361f to your computer and use it in GitHub Desktop.
Find Pentax Pixel Shift images and label them
#!/bin/zsh
# REQUIRES: ExifTool
# Finds Pentax "Pixel Shift" RAW files in the current directory (and below) and adds an XMP label.
# This enables them to be spotted in RAW processing software that can't handle them.
# The -r flag recurses down through directories, and the . starts at the current directory. Change as desired.
# Change the label 'Purple' as desired.
exiftool -if 'Pentax:$quality =~ /shift/i' -XMP-xmp:Label=Purple -r .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment