Skip to content

Instantly share code, notes, and snippets.

@akash1810
Created October 28, 2015 15:25
Show Gist options
  • Save akash1810/9084d0ca4d8730e4b7c8 to your computer and use it in GitHub Desktop.
Save akash1810/9084d0ca4d8730e4b7c8 to your computer and use it in GitHub Desktop.
Displays the IPTC category information for an image.
#!/bin/bash
if [ $# -ne 1 ]
then
echo "usage: exifcats.sh <FILE>"
echo
echo "Displays the IPTC category information for an image."
echo
exit 1
fi
IMAGE=$1
exiftool ${IMAGE} -json | jq '{"Category": .[].Category, "Supplemental Categories": .[].SupplementalCategories}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment