Last active
December 13, 2022 05:47
-
-
Save zkarj735/03408c753d29dac5f9b423d09d5d361f to your computer and use it in GitHub Desktop.
Find Pentax Pixel Shift images and label them
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
#!/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