More info

-add width,height,size info
This commit is contained in:
2023-11-14 19:51:54 +01:00
parent 0f0ec8ba59
commit 58a1a129e4

View File

@@ -194,7 +194,7 @@ fi
[ ! -f "$file" ] && echo -e "${bold}${red}No input file !${reset}" && exit 2 [ ! -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 # dico français / anglais
@@ -253,6 +253,9 @@ focal=$(echo "$exif" | jq -j '.[] | .FocalLength | select( . != null )')
latitude=$(echo "$exif" | jq -j '.[] | .GPSLatitude | select( . != null )') latitude=$(echo "$exif" | jq -j '.[] | .GPSLatitude | select( . != null )')
longitude=$(echo "$exif" | jq -j '.[] | .GPSLongitude | select( . != null )') longitude=$(echo "$exif" | jq -j '.[] | .GPSLongitude | select( . != null )')
altitude=$(echo "$exif" | jq -j '.[] | .GPSAltitude | 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 echo
if [[ -n $iso ]] && [[ -n $speed ]] && [[ -n $aperture ]]; then 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}" printf " %-11s %-35s \n" "APN:" "${model}"
fi fi
printf " %-11s %-35s \n" "Focal:" "${focal}" printf " %-11s %-35s \n" "Focal:" "${focal}"
if [[ -n $lensID ]]; then if [[ -n $lensID ]]; then
printf " %-11s %-35s \n" "LensID:" "${lensID}" printf " %-11s %-35s \n" "LensID:" "${lensID}"
l="$lensID" l="$lensID"
@@ -278,6 +282,10 @@ if [[ -n $iso ]] && [[ -n $speed ]] && [[ -n $aperture ]]; then
printf " %-11s %-35s \n" "Lens:" "${lens}" printf " %-11s %-35s \n" "Lens:" "${lens}"
l="$lens" l="$lens"
fi 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 if [[ -n $latitude ]] && [[ -n $longitude ]]; then
printf " %-11s %-35s \n" "Latitude:" "${latitude}" printf " %-11s %-35s \n" "Latitude:" "${latitude}"
printf " %-11s %-35s \n" "Longitude:" "${longitude}" printf " %-11s %-35s \n" "Longitude:" "${longitude}"