up count before 100 000 capture

This commit is contained in:
Tykayn 2024-02-24 10:27:55 +01:00 committed by tykayn
parent 8691264f25
commit 7de64ae953
3 changed files with 34 additions and 14 deletions

View File

@ -37,19 +37,35 @@ function batch_exif_photos {
# test with previous zero # 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 if [ -f "$file_with_zero" ] && [ -f "$file_assemblage_with_zero" ]; then
echo "set the tags in assemblage $i from GF$filename_with_zero.jpg" 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 exiftool -tagsFromFile "$file_with_zero" $file_with_zero $file_assemblage_with_zero -overwrite_original
echo "updated the exift tags of $file_assemblage_with_zero" echo "updated the exift tags of $file_assemblage_with_zero"
else else
echo "batch_exif_photos: File $file_with_zero does not exist." echo "/!\ batch_exif_photos: File with zero:
if [ -f "$file" ] && [ -f "$file_assemblage" ]; then $file_with_zero
does not exist."
# if [ -f "$file" ] && [ -f "$file_assemblage" ]; then
echo "set the tags in assemblage $i from GF$filename.jpg" echo "set the tags in assemblage $i from GF$filename.jpg"
exiftool -tagsFromFile "$file" $file $file_assemblage -overwrite_original exiftool -tagsFromFile "$file" $file $file_assemblage -overwrite_original
echo "updated the exift tags of $file_assemblage" echo "updated the exift tags of $file_assemblage"
else # else
echo "batch_exif_photos: File $file does not exist." # echo "/!\ batch_exif_photos: File:
fi # $file
# OR assemblage:
# $file_assemblage
# does not exist."
# fi
fi fi
done done
@ -58,5 +74,5 @@ function batch_exif_photos {
batch_exif_photos $1 $2 $3 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/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

View File

@ -34,12 +34,16 @@ let outputStitchedFolder = base_gopro_folder + '/hugin_assemblages_script_output
if (mini_arguments['addExifToolInScript']) { if (mini_arguments['addExifToolInScript']) {
addExifToolInScript = mini_arguments['addExifToolInScript'] addExifToolInScript = mini_arguments['addExifToolInScript']
} }
if (mini_arguments['previous_zero']) {
previous_zero = '0'
}
if (mini_arguments['goproMin']) { if (mini_arguments['goproMin']) {
goproMin = 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']) { if (mini_arguments['goproSubFolder']) {
gopro_fusion_separated_photos_folder = 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') 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
@ -211,8 +215,8 @@ function makeBashScriptHugin(minmax: any) {
*/ */
function makePto(absolutePath: string, currentNumber: string):string { function makePto(absolutePath: string, currentNumber: string):string {
let front_picture_name = absolutePath + '/GF' + currentNumber + '.' + extension_photo_source; let front_picture_name = absolutePath + '/GF' + currentNumber + '.' + extension_photo_source;
let back_picture_name = absolutePath + '/GB' + currentNumber + '.' + extension_photo_source; let back_picture_name = absolutePath + '/GB' + currentNumber + '.' + extension_photo_source;
// console.log('# front_picture_name', front_picture_name) // console.log('# front_picture_name', front_picture_name)

View File

@ -32,4 +32,4 @@ done
echo "dossier de destination: echo "dossier de destination:
$dst_dir" $dst_dir"
# supprimer les fichiers pto # 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