Compare commits
2 Commits
afd6628508
...
7de64ae953
Author | SHA1 | Date | |
---|---|---|---|
7de64ae953 | |||
8691264f25 |
@ -37,19 +37,35 @@ function batch_exif_photos {
|
||||
|
||||
|
||||
# test with previous zero
|
||||
if [ -f "$file_assemblage_with_zero" ]; then
|
||||
echo "."
|
||||
else
|
||||
echo "missing assemblage with zero $file_assemblage_with_zero"
|
||||
fi
|
||||
if [ -f "$file_assemblage" ]; then
|
||||
echo "."
|
||||
else
|
||||
echo "missing assemblage $file_assemblage_with_zero"
|
||||
fi
|
||||
if [ -f "$file_with_zero" ] && [ -f "$file_assemblage_with_zero" ]; then
|
||||
echo "set the tags in assemblage $i from GF$filename_with_zero.jpg"
|
||||
exiftool -tagsFromFile "$file_with_zero" $file_with_zero $file_assemblage_with_zero -overwrite_original
|
||||
echo "updated the exift tags of $file_assemblage_with_zero"
|
||||
else
|
||||
echo "batch_exif_photos: File $file_with_zero does not exist."
|
||||
if [ -f "$file" ] && [ -f "$file_assemblage" ]; then
|
||||
echo "/!\ batch_exif_photos: File with zero:
|
||||
$file_with_zero
|
||||
does not exist."
|
||||
# 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
|
||||
# else
|
||||
# echo "/!\ batch_exif_photos: File:
|
||||
# $file
|
||||
# OR assemblage:
|
||||
# $file_assemblage
|
||||
# does not exist."
|
||||
# fi
|
||||
fi
|
||||
done
|
||||
|
||||
@ -59,4 +75,4 @@ function batch_exif_photos {
|
||||
batch_exif_photos $1 $2 $3
|
||||
|
||||
bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/move_batch.sh $1 $2
|
||||
bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/remove_pto_batch.sh $1 $2
|
||||
# bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/remove_pto_batch.sh $1 $2
|
||||
|
@ -34,12 +34,16 @@ let outputStitchedFolder = base_gopro_folder + '/hugin_assemblages_script_output
|
||||
if (mini_arguments['addExifToolInScript']) {
|
||||
addExifToolInScript = mini_arguments['addExifToolInScript']
|
||||
}
|
||||
if (mini_arguments['previous_zero']) {
|
||||
previous_zero = '0'
|
||||
}
|
||||
if (mini_arguments['goproMin']) {
|
||||
goproMin = mini_arguments['goproMin']
|
||||
}
|
||||
if(goproMin < 100000){
|
||||
previous_zero = '0'
|
||||
}
|
||||
if (mini_arguments['previous_zero']) {
|
||||
previous_zero = '0'
|
||||
}
|
||||
console.log('# prise en compte du zéro? ', previous_zero)
|
||||
if (mini_arguments['goproSubFolder']) {
|
||||
gopro_fusion_separated_photos_folder = mini_arguments['goproSubFolder']
|
||||
}
|
||||
@ -179,7 +183,7 @@ function makeBashScriptHugin(minmax: any) {
|
||||
console.log('# fin de l\'écriture des '+count_pto_made_files+' fichiers PTO')
|
||||
}
|
||||
|
||||
let hugin_batch_command = 'bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/exif_batch.sh ' + goproMin + ' ' + goproMax
|
||||
let hugin_batch_command = 'bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/exif_batch.sh ' + goproMin + ' ' + goproMax + ' ' + gopro_fusion_separated_photos_folder
|
||||
|
||||
|
||||
|
||||
|
@ -24,10 +24,12 @@ for i in $(seq -f "%03g" ${start_num} ${end_num}); do
|
||||
if [ -f "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/${src_file}" ]; then
|
||||
mv -- "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/${src_file}" "${dst_file}"
|
||||
echo "Déplacé ${src_file} -> ${dst_file}"
|
||||
else
|
||||
echo "Fichier '${src_file}' introuvable."
|
||||
# else
|
||||
# echo "Fichier '${src_file}' introuvable."
|
||||
fi
|
||||
done
|
||||
|
||||
echo "dossier de destination:
|
||||
$dst_dir"
|
||||
# supprimer les fichiers pto
|
||||
bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/remove_pto_batch.sh $start_num $end_num
|
||||
# bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/remove_pto_batch.sh $start_num $end_num
|
||||
|
@ -10,17 +10,18 @@ fi
|
||||
start_num="$1"
|
||||
end_num="$2"
|
||||
src_base_name="merging_"
|
||||
count=0
|
||||
|
||||
|
||||
# Déplacer des fichiers depuis le répertoire actuel vers le nouveau dossier
|
||||
echo "supprimer des fichiers PTO "
|
||||
# supprimer des fichiers PTO
|
||||
for i in $(seq -f "%03g" ${start_num} ${end_num}); do
|
||||
src_file="${src_base_name}${i}.pto"
|
||||
|
||||
if [ -f "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/INBOX_PTO_hugin/${src_file}" ]; then
|
||||
rm -rf "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/INBOX_PTO_hugin/${src_file}"
|
||||
count=$((count+1))
|
||||
else
|
||||
echo "Fichier '${src_file}' introuvable."
|
||||
# else
|
||||
# echo "Fichier '${src_file}' introuvable."
|
||||
fi
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user