Created
October 28, 2015 15:25
-
-
Save akash1810/9084d0ca4d8730e4b7c8 to your computer and use it in GitHub Desktop.
Displays the IPTC category information for an image.
This file contains 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/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