check existence of stitched file before running stitching
This commit is contained in:
parent
09097a22c5
commit
1c325c12d4
|
@ -18,10 +18,10 @@ function batch_exif_photos {
|
||||||
for i in $(seq $min $max); do
|
for i in $(seq $min $max); do
|
||||||
filename=$i
|
filename=$i
|
||||||
file="$dir/GF0$filename.JPG"
|
file="$dir/GF0$filename.JPG"
|
||||||
file_assemblage="/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/rouen_sequence_stiched/assemblage_0$i.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
|
if [ -f "$file" ] && [ -f "$file_assemblage" ]; then
|
||||||
echo "set the tags in assemblage $i from GF0$filename.JPG"
|
echo "set the tags in assemblage $i from GF0$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
|
||||||
|
@ -30,4 +30,4 @@ function batch_exif_photos {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
batch_exif_photos $1 $2
|
batch_exif_photos $1 $2
|
||||||
|
|
|
@ -23,7 +23,7 @@ let gorpro_fusion_separated_photos_folder = 'rouen_oct23'
|
||||||
let goproMin = '80800'// numéro de photo gopro minimum front et back. correspond à GF080800.JPG + GB080800.JPG
|
let goproMin = '80800'// numéro de photo gopro minimum front et back. correspond à GF080800.JPG + GB080800.JPG
|
||||||
let goproMax = '80866' // et maximum. correspond à GF080866.JPG + GB080866.JPG
|
let goproMax = '80866' // et maximum. correspond à GF080866.JPG + GB080866.JPG
|
||||||
let addExifToolInScript = true;
|
let addExifToolInScript = true;
|
||||||
|
let outputStitchedFolder = '/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output'
|
||||||
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
|
||||||
if (mini_arguments['addExifToolInScript']) {
|
if (mini_arguments['addExifToolInScript']) {
|
||||||
addExifToolInScript = mini_arguments['addExifToolInScript']
|
addExifToolInScript = mini_arguments['addExifToolInScript']
|
||||||
|
@ -92,11 +92,14 @@ function makeBashScriptHugin(minmax: any) {
|
||||||
|
|
||||||
let ptoPath = `${dossier_pto_output}/${ptoFileName}`
|
let ptoPath = `${dossier_pto_output}/${ptoFileName}`
|
||||||
scriptsContent += '\n\n# capture n°' + currentNumber
|
scriptsContent += '\n\n# capture n°' + currentNumber
|
||||||
scriptsContent += '\nhugin_executor' +
|
scriptsContent += '\nif [ -f '+outputStitchedFolder+stitchedFileName+'.jpg ]; then ' +
|
||||||
' ' + ptoPath + ' ' +
|
'hugin_executor' +
|
||||||
'--stitching ' +
|
' ' + ptoPath + ' ' +
|
||||||
'--prefix=' + stitchedFileName +
|
'--stitching ' +
|
||||||
' -t=6'
|
'--prefix=' + stitchedFileName +
|
||||||
|
' -t=6'+
|
||||||
|
'\n' +
|
||||||
|
'fi'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue