44 lines
1.5 KiB
Bash
Executable File
44 lines
1.5 KiB
Bash
Executable File
#!/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
|
|
###################################
|
|
# exemple
|
|
# bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/exif_batch.sh 36077 38695 INBOX_a_assembler/rouen_3
|
|
# va assigner les données exif des photos gopro GF36077.JPG à leur assemblage assemblage_063077.jpg
|
|
|
|
#folder="rouen/rouen_oct23"
|
|
|
|
function batch_exif_photos {
|
|
echo "# assemblage des infos exif en batch"
|
|
|
|
local min=$1
|
|
local max=$2
|
|
local folder=$3
|
|
local dir="/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/$folder"
|
|
|
|
echo "subdirectory of gopro is $dir"
|
|
echo $(seq $min $max)
|
|
|
|
for i in $(seq $min $max); do
|
|
filename=$i
|
|
file="$dir/GF$filename.JPG"
|
|
file_assemblage="/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/assemblage_0$i.jpg"
|
|
|
|
if [ -f "$file" ] && [ -f "$file_assemblage" ]; then
|
|
echo "set the tags in assemblage $i from GF$filename.jpg"
|
|
exiftool -tagsFromFile "$file" $file $file_assemblage -overwrite_original
|
|
echo "updated the exift tags of $file_assemblage"
|
|
else
|
|
echo "batch_exif_photos: File $file does not exist."
|
|
fi
|
|
done
|
|
|
|
echo "# fin des assemblages exif"
|
|
}
|
|
|
|
batch_exif_photos $1 $2 $3
|