From 58a1a129e4a6099183c778206b4b2d6ce7a122e8 Mon Sep 17 00:00:00 2001 From: Bruno21 Date: Tue, 14 Nov 2023 19:51:54 +0100 Subject: [PATCH] More info -add width,height,size info --- keywords2insta.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/keywords2insta.sh b/keywords2insta.sh index dca9f73..944bfda 100755 --- a/keywords2insta.sh +++ b/keywords2insta.sh @@ -194,7 +194,7 @@ fi [ ! -f "$file" ] && echo -e "${bold}${red}No input file !${reset}" && exit 2 -echo -e "\n${greenbold}keywords2insta${reset} v2.0" +echo -e "\n${greenbold}keywords2insta${reset} v2.1" # dico français / anglais @@ -253,6 +253,9 @@ focal=$(echo "$exif" | jq -j '.[] | .FocalLength | select( . != null )') latitude=$(echo "$exif" | jq -j '.[] | .GPSLatitude | select( . != null )') longitude=$(echo "$exif" | jq -j '.[] | .GPSLongitude | select( . != null )') altitude=$(echo "$exif" | jq -j '.[] | .GPSAltitude | select( . != null )') +width=$(echo "$exif" | jq -j '.[] | .ImageWidth | select( . != null )') +height=$(echo "$exif" | jq -j '.[] | .ImageHeight | select( . != null )') +size=$(echo "$exif" | jq -j '.[] | .FileSize | select( . != null )') echo if [[ -n $iso ]] && [[ -n $speed ]] && [[ -n $aperture ]]; then @@ -268,6 +271,7 @@ if [[ -n $iso ]] && [[ -n $speed ]] && [[ -n $aperture ]]; then printf " %-11s %-35s \n" "APN:" "${model}" fi printf " %-11s %-35s \n" "Focal:" "${focal}" + if [[ -n $lensID ]]; then printf " %-11s %-35s \n" "LensID:" "${lensID}" l="$lensID" @@ -278,6 +282,10 @@ if [[ -n $iso ]] && [[ -n $speed ]] && [[ -n $aperture ]]; then printf " %-11s %-35s \n" "Lens:" "${lens}" l="$lens" fi + printf " %-11s %-35s \n" "Widht:" "${width}" + printf " %-11s %-35s \n" "Height:" "${height}" + printf " %-11s %-35s \n" "Size:" "${size}" + if [[ -n $latitude ]] && [[ -n $longitude ]]; then printf " %-11s %-35s \n" "Latitude:" "${latitude}" printf " %-11s %-35s \n" "Longitude:" "${longitude}"