2023-10-31 16:17:23 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# capture n°080530
|
|
|
|
#hugin_executor /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/output_pto/merging_080530.pto --stitching --prefix=assemblage_080530 -t=6
|
|
|
|
|
|
|
|
###################################
|
|
|
|
# complétion des données gps depuis une des photos assemblées
|
|
|
|
###################################
|
2023-12-09 12:02:54 +01:00
|
|
|
# exemple
|
|
|
|
# bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/exif_batch.sh 36077 38695 INBOX_a_assembler/rouen_3
|
2023-11-23 11:23:07 +01:00
|
|
|
# va assigner les données exif des photos gopro GF036077.JPG à leur assemblage assemblage_063077.jpg
|
|
|
|
|
2023-11-23 14:10:45 +01:00
|
|
|
#folder="rouen/rouen_oct23"
|
2023-10-31 16:17:23 +01:00
|
|
|
|
|
|
|
function batch_exif_photos {
|
|
|
|
local min=$1
|
|
|
|
local max=$2
|
2023-11-23 14:10:45 +01:00
|
|
|
local folder=$3
|
2023-11-23 11:23:07 +01:00
|
|
|
local dir="/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/$folder"
|
2023-10-31 16:17:23 +01:00
|
|
|
|
2023-12-09 12:02:54 +01:00
|
|
|
echo "subdirectory of gopro is $dir"
|
2023-10-31 16:17:23 +01:00
|
|
|
echo $(seq $min $max)
|
|
|
|
|
|
|
|
for i in $(seq $min $max); do
|
|
|
|
filename=$i
|
|
|
|
file="$dir/GF0$filename.JPG"
|
2023-11-09 10:40:58 +01:00
|
|
|
file_assemblage="/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/assemblage_0$i.jpg"
|
2023-10-31 16:17:23 +01:00
|
|
|
|
|
|
|
if [ -f "$file" ] && [ -f "$file_assemblage" ]; then
|
2023-11-09 10:40:58 +01:00
|
|
|
echo "set the tags in assemblage $i from GF0$filename.jpg"
|
2023-12-09 12:02:54 +01:00
|
|
|
exiftool -tagsFromFile "$file" $file $file_assemblage -overwrite_original
|
|
|
|
echo "updated the exift tags of $file_assemblage"
|
2023-10-31 16:17:23 +01:00
|
|
|
else
|
2023-11-23 18:10:09 +01:00
|
|
|
echo "batch_exif_photos: File $file does not exist."
|
2023-10-31 16:17:23 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2023-11-23 14:10:45 +01:00
|
|
|
batch_exif_photos $1 $2 $3
|